@wemap/routers 11.0.0 → 11.0.1
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/wemap-osm/OsmRouter.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -700,7 +700,7 @@ let OsmGraph = _OsmGraph;
|
|
|
700
700
|
__publicField(OsmGraph, "HIGHWAYS_PEDESTRIANS", HIGHWAYS_PEDESTRIANS);
|
|
701
701
|
__publicField(OsmGraph, "DEFAULT_WAY_SELECTOR", DEFAULT_WAY_SELECTOR);
|
|
702
702
|
const DEFAULT_OPTIONS = Object.assign({}, geo.GeoGraphRouter.DEFAULT_OPTIONS, {
|
|
703
|
-
weightEdgeFn: (edge) => edge.data instanceof osm.OsmNode && edge.data.isElevator ?
|
|
703
|
+
weightEdgeFn: (edge) => edge.data instanceof osm.OsmNode && edge.data.isElevator ? 90 : getDurationFromLength(edge.length)
|
|
704
704
|
});
|
|
705
705
|
const WITHOUT_STAIRS_OPTIONS = Object.assign({}, DEFAULT_OPTIONS, {
|
|
706
706
|
acceptEdgeFn: (edge) => edge.data.tags.highway !== "steps"
|