@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 CHANGED
@@ -1872,7 +1872,13 @@ const _GeoGraphRouter = class _GeoGraphRouter {
1872
1872
  e.itinerary.end = e.input instanceof GeoGraphVertex ? e.input.coords : e.input;
1873
1873
  }
1874
1874
  });
1875
- return endsStructFiltered.map((e) => e.itinerary);
1875
+ return endsStruct.map((end) => {
1876
+ const endFiltered = endsStructFiltered.find((e) => e.input === end.input);
1877
+ if (endFiltered)
1878
+ return endFiltered.itinerary;
1879
+ const endCoords = end.input instanceof GeoGraphVertex ? end.input.coords : end.input;
1880
+ return GeoGraphItinerary.fromGraphVertices(startCoords, endCoords, [], []);
1881
+ });
1876
1882
  }
1877
1883
  createVertexInsideEdge(edge, point) {
1878
1884
  const a = edge.vertex1;