@wemap/geo 11.8.1 → 11.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/graph/GeoGraphRouter.ts +9 -1
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"directory": "packages/geo"
|
|
14
14
|
},
|
|
15
15
|
"name": "@wemap/geo",
|
|
16
|
-
"version": "11.8.
|
|
16
|
+
"version": "11.8.2",
|
|
17
17
|
"bugs": {
|
|
18
18
|
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
19
19
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
},
|
|
46
46
|
"./tests/*": "./tests/*"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "dbf7e0371565edb0e76ad56b967bd6539e5d0659"
|
|
49
49
|
}
|
|
@@ -231,7 +231,15 @@ class GeoGraphRouter<VertexData = unknown, EdgeData = unknown> {
|
|
|
231
231
|
e.itinerary.end = (e.input instanceof GeoGraphVertex) ? e.input.coords : e.input;
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
|
-
|
|
234
|
+
|
|
235
|
+
return endsStruct.map(end => {
|
|
236
|
+
const endFiltered = endsStructFiltered.find(e => e.input === end.input);
|
|
237
|
+
if (endFiltered) return endFiltered.itinerary;
|
|
238
|
+
|
|
239
|
+
const endCoords = end.input instanceof GeoGraphVertex ? end.input.coords : end.input;
|
|
240
|
+
return GeoGraphItinerary.fromGraphVertices(startCoords, endCoords, [], []);
|
|
241
|
+
})
|
|
242
|
+
|
|
235
243
|
}
|
|
236
244
|
|
|
237
245
|
createVertexInsideEdge(edge: GeoGraphEdge<VertexData, EdgeData>, point: Coordinates) {
|