@wemap/routers 12.7.0 → 12.7.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 CHANGED
@@ -2844,8 +2844,12 @@ __publicField(_OsmGraphUtils, "RESTRICTED_PEDESTRIANS_HIGHWAYS", ["motorway", "m
2844
2844
  __publicField(_OsmGraphUtils, "DEFAULT_WAY_SELECTOR", (way) => {
2845
2845
  if (way.isArea)
2846
2846
  return false;
2847
+ if (way.tags.foot === "yes")
2848
+ return true;
2849
+ if (["no", "private"].includes(way.tags.access))
2850
+ return false;
2847
2851
  const isElevatorArea = way.tags.highway === "elevator" && way.isGeometryClosed;
2848
- 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";
2852
+ return way.tags.highway && !_OsmGraphUtils.RESTRICTED_PEDESTRIANS_HIGHWAYS.includes(way.tags.highway) && !isElevatorArea || way.tags.footway === "sidewalk" || way.tags.public_transport === "platform" || way.tags.railway === "platform";
2849
2853
  });
2850
2854
  let OsmGraphUtils = _OsmGraphUtils;
2851
2855
  class RemoteRouter {