@wemap/routers 11.1.0 → 11.1.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.mjs CHANGED
@@ -1430,7 +1430,8 @@ class OsrmRemoteRouter extends RemoteRouter {
1430
1430
  });
1431
1431
  const from = waypoints[0];
1432
1432
  const to = waypoints[waypoints.length - 1];
1433
- return this.createRouterResponseFromJson(jsonResponse, from, to);
1433
+ const osrmMode = inputModeCorrespondance$1.get(mode);
1434
+ return this.createRouterResponseFromJson(jsonResponse, from, to, osrmMode);
1434
1435
  }
1435
1436
  getURL(endpointUrl, mode, waypoints) {
1436
1437
  const osrmMode = inputModeCorrespondance$1.get(mode);