@wemap/routers 11.0.0-alpha.15 → 11.0.0-alpha.16

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
@@ -1637,7 +1637,7 @@ class WemapMultiRouter {
1637
1637
  }
1638
1638
  let ioMapItinerary;
1639
1639
  const mapWithStart = ioMapsToTest.find((map) => map.isPointInside(start));
1640
- const wemapOsmRouterOptions = !options || !("useStairs" in options) && options.useStairs ? WemapOsmRouterOptions.DEFAULT : WemapOsmRouterOptions.WITHOUT_STAIRS;
1640
+ const wemapOsmRouterOptions = !options || !("useStairs" in options) || options.useStairs ? WemapOsmRouterOptions.DEFAULT : WemapOsmRouterOptions.WITHOUT_STAIRS;
1641
1641
  if (mapWithStart && mapWithStart.isPointInside(end)) {
1642
1642
  try {
1643
1643
  ioMapItinerary = mapWithStart.getItineraryInsideMap(start, end, wemapOsmRouterOptions);