@wemap/routers 12.0.0-alpha.14 → 12.0.0-alpha.15
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 +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/wemap-osm/OsmGraphUtils.ts +4 -3
package/dist/index.js
CHANGED
|
@@ -1430,10 +1430,12 @@ const _OsmGraphUtils = class _OsmGraphUtils {
|
|
|
1430
1430
|
return new Graph(verticesMapping.map((v) => v[1]), edges);
|
|
1431
1431
|
}
|
|
1432
1432
|
};
|
|
1433
|
-
__publicField(_OsmGraphUtils, "
|
|
1433
|
+
__publicField(_OsmGraphUtils, "RESTRICTED_PEDESTRIANS_HIGHWAYS", ["motorway", "motorway_link"]);
|
|
1434
1434
|
__publicField(_OsmGraphUtils, "DEFAULT_WAY_SELECTOR", (way) => {
|
|
1435
|
-
|
|
1436
|
-
|
|
1435
|
+
if (way.isArea)
|
|
1436
|
+
return false;
|
|
1437
|
+
const isElevatorArea = way.tags.highway === "elevator" && way.isGeometryClosed;
|
|
1438
|
+
return way.tags.highway && !_OsmGraphUtils.RESTRICTED_PEDESTRIANS_HIGHWAYS.includes(way.tags.highway) && !isElevatorArea && !["no", "private"].includes(way.tags.access) || way.tags.footway === "sidewalk" || way.tags.public_transport === "platform" || way.tags.railway === "platform";
|
|
1437
1439
|
});
|
|
1438
1440
|
let OsmGraphUtils = _OsmGraphUtils;
|
|
1439
1441
|
class RemoteRouter {
|