@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.mjs CHANGED
@@ -702,6 +702,10 @@ const DEFAULT_OPTIONS = Object.assign({}, GeoGraphRouter.DEFAULT_OPTIONS, {
702
702
  duration *= 3;
703
703
  }
704
704
  return duration;
705
+ },
706
+ acceptEdgeFn: (edge) => {
707
+ const accessTag = edge.data.tags.access;
708
+ return typeof accessTag === "undefined" || accessTag === "yes";
705
709
  }
706
710
  });
707
711
  const WITHOUT_STAIRS_OPTIONS = Object.assign({}, DEFAULT_OPTIONS, {
@@ -1271,7 +1275,6 @@ class IdfmRemoteRouter extends RemoteRouter {
1271
1275
  }
1272
1276
  [coreParams, queryParams].map((params) => {
1273
1277
  for (const pair of params.entries()) {
1274
- console.log(pair[0], pair[1]);
1275
1278
  url.searchParams.append(pair[0], pair[1]);
1276
1279
  }
1277
1280
  });