@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.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
|
-
|
|
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);
|