@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.js
CHANGED
|
@@ -853,9 +853,9 @@ const _WemapOsmRouter = class extends geo.GeoGraphRouter {
|
|
|
853
853
|
return false;
|
|
854
854
|
if (typeof (options == null ? void 0 : options.useStairs) !== "undefined" && !(options == null ? void 0 : options.useStairs) && edge.data instanceof osm.OsmWay && edge.data.areStairs && !edge.data.isConveying)
|
|
855
855
|
return false;
|
|
856
|
-
if (typeof (options == null ? void 0 : options.
|
|
856
|
+
if (typeof (options == null ? void 0 : options.useEscalators) !== "undefined" && !(options == null ? void 0 : options.useEscalators) && edge.data instanceof osm.OsmWay && edge.data.areStairs && edge.data.isConveying)
|
|
857
857
|
return false;
|
|
858
|
-
if (typeof (options == null ? void 0 : options.
|
|
858
|
+
if (typeof (options == null ? void 0 : options.useElevators) !== "undefined" && !(options == null ? void 0 : options.useElevators) && ((_c = edge.data) == null ? void 0 : _c.isElevator))
|
|
859
859
|
return false;
|
|
860
860
|
return true;
|
|
861
861
|
};
|