@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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/remote/osrm/OsrmRemoteRouter.spec.ts +25 -0
- package/src/remote/osrm/OsrmRemoteRouter.ts +17 -13
- package/src/wemap-osm/OsmRouter.spec.ts +5 -6
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
|
-
|
|
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);
|