@wemap/routers 11.3.1 → 11.3.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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/wemap-osm/OsmRouter.ts +2 -2
- package/src/wemap-osm/OsmRouterOptions.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -845,9 +845,9 @@ const _WemapOsmRouter = class extends GeoGraphRouter {
|
|
|
845
845
|
return false;
|
|
846
846
|
if (typeof (options == null ? void 0 : options.useStairs) !== "undefined" && !(options == null ? void 0 : options.useStairs) && edge.data instanceof OsmWay && edge.data.areStairs && !edge.data.isConveying)
|
|
847
847
|
return false;
|
|
848
|
-
if (typeof (options == null ? void 0 : options.
|
|
848
|
+
if (typeof (options == null ? void 0 : options.useEscalators) !== "undefined" && !(options == null ? void 0 : options.useEscalators) && edge.data instanceof OsmWay && edge.data.areStairs && edge.data.isConveying)
|
|
849
849
|
return false;
|
|
850
|
-
if (typeof (options == null ? void 0 : options.
|
|
850
|
+
if (typeof (options == null ? void 0 : options.useElevators) !== "undefined" && !(options == null ? void 0 : options.useElevators) && ((_c = edge.data) == null ? void 0 : _c.isElevator))
|
|
851
851
|
return false;
|
|
852
852
|
return true;
|
|
853
853
|
};
|