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