@wemap/routers 11.2.0 → 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 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/remote/idfm/IdfmRemoteRouter.ts +0 -1
- 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, {
|
|
@@ -1279,7 +1283,6 @@ class IdfmRemoteRouter extends RemoteRouter {
|
|
|
1279
1283
|
}
|
|
1280
1284
|
[coreParams, queryParams].map((params) => {
|
|
1281
1285
|
for (const pair of params.entries()) {
|
|
1282
|
-
console.log(pair[0], pair[1]);
|
|
1283
1286
|
url.searchParams.append(pair[0], pair[1]);
|
|
1284
1287
|
}
|
|
1285
1288
|
});
|