@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.js CHANGED
@@ -1438,7 +1438,8 @@ class OsrmRemoteRouter extends RemoteRouter {
1438
1438
  });
1439
1439
  const from = waypoints[0];
1440
1440
  const to = waypoints[waypoints.length - 1];
1441
- return this.createRouterResponseFromJson(jsonResponse, from, to);
1441
+ const osrmMode = inputModeCorrespondance$1.get(mode);
1442
+ return this.createRouterResponseFromJson(jsonResponse, from, to, osrmMode);
1442
1443
  }
1443
1444
  getURL(endpointUrl, mode, waypoints) {
1444
1445
  const osrmMode = inputModeCorrespondance$1.get(mode);