@wemap/routers 11.2.1 → 11.2.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 +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/wemap-osm/OsmRouter.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -710,6 +710,10 @@ const DEFAULT_OPTIONS = Object.assign({}, geo.GeoGraphRouter.DEFAULT_OPTIONS, {
|
|
|
710
710
|
duration *= 3;
|
|
711
711
|
}
|
|
712
712
|
return duration;
|
|
713
|
+
},
|
|
714
|
+
acceptEdgeFn: (edge) => {
|
|
715
|
+
const accessTag = edge.data.tags.access;
|
|
716
|
+
return typeof accessTag === "undefined" || accessTag === "yes";
|
|
713
717
|
}
|
|
714
718
|
});
|
|
715
719
|
const WITHOUT_STAIRS_OPTIONS = Object.assign({}, DEFAULT_OPTIONS, {
|