@wemap/routers 12.10.8-alpha.1 → 12.10.8-alpha.2
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.
|
@@ -179,15 +179,15 @@ declare const remoteRouters: readonly [{
|
|
|
179
179
|
getWalkingQuery(): URLSearchParams;
|
|
180
180
|
getBikeQuery(): URLSearchParams;
|
|
181
181
|
getSectionCoords(section: import('./navitia/types.js').NavitiaSection): {
|
|
182
|
-
from: import('@wemap/geo/src/coordinates/Coordinates.js').default;
|
|
183
|
-
to: import('@wemap/geo/src/coordinates/Coordinates.js').default;
|
|
182
|
+
from: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default;
|
|
183
|
+
to: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default;
|
|
184
184
|
};
|
|
185
|
-
findStepsCoord(legCoords: import('@wemap/geo/src/coordinates/Coordinates.js').default[], steps: import('./navitia/types.js').NavitiaIntermediateStep[]): {
|
|
186
|
-
coords: import('@wemap/geo/src/coordinates/Coordinates.js').default;
|
|
185
|
+
findStepsCoord(legCoords: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default[], steps: import('./navitia/types.js').NavitiaIntermediateStep[]): {
|
|
186
|
+
coords: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default;
|
|
187
187
|
name: string;
|
|
188
188
|
distance: number;
|
|
189
189
|
}[];
|
|
190
|
-
findStepCoords(step: import('./navitia/types.js').NavitiaPath, section: import('./navitia/types.js').NavitiaSection): import('@wemap/geo/src/coordinates/Coordinates.js').default | undefined;
|
|
190
|
+
findStepCoords(step: import('./navitia/types.js').NavitiaPath, section: import('./navitia/types.js').NavitiaSection): import('@wemap/geo/dist/src/coordinates/Coordinates.js').default | undefined;
|
|
191
191
|
parseResponse(json: import('./navitia/types.js').NavitiaJson): import('../model/Itinerary.js').default[];
|
|
192
192
|
}, {
|
|
193
193
|
readonly rname: "deutsche-bahn";
|
|
@@ -202,7 +202,7 @@ declare const remoteRouters: readonly [{
|
|
|
202
202
|
lon: number;
|
|
203
203
|
}[];
|
|
204
204
|
}[];
|
|
205
|
-
}, origin: import('@wemap/geo/src/coordinates/Coordinates.js').default, destination: import('@wemap/geo/src/coordinates/Coordinates.js').default): import('../model/Itinerary.js').default[];
|
|
205
|
+
}, origin: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default, destination: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default): import('../model/Itinerary.js').default[];
|
|
206
206
|
}, {
|
|
207
207
|
readonly rname: "idfm";
|
|
208
208
|
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('../model/Itinerary.js').default[]>;
|
|
@@ -308,14 +308,14 @@ declare const remoteRouters: readonly [{
|
|
|
308
308
|
pathway_mode: number;
|
|
309
309
|
}[] | undefined;
|
|
310
310
|
}): {
|
|
311
|
-
from: import('@wemap/geo/src/coordinates/Coordinates.js').default;
|
|
312
|
-
to: import('@wemap/geo/src/coordinates/Coordinates.js').default;
|
|
311
|
+
from: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default;
|
|
312
|
+
to: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default;
|
|
313
313
|
};
|
|
314
|
-
findStepsCoord(legCoords: import('@wemap/geo/src/coordinates/Coordinates.js').default[], steps: {
|
|
314
|
+
findStepsCoord(legCoords: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default[], steps: {
|
|
315
315
|
name: string;
|
|
316
316
|
distance: number;
|
|
317
317
|
}[]): {
|
|
318
|
-
coords: import('@wemap/geo/src/coordinates/Coordinates.js').default;
|
|
318
|
+
coords: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default;
|
|
319
319
|
name: string;
|
|
320
320
|
distance: number;
|
|
321
321
|
}[];
|
|
@@ -426,7 +426,7 @@ declare const remoteRouters: readonly [{
|
|
|
426
426
|
traversal_time: number;
|
|
427
427
|
pathway_mode: number;
|
|
428
428
|
}[] | undefined;
|
|
429
|
-
}): import('@wemap/geo/src/coordinates/Coordinates.js').default | undefined;
|
|
429
|
+
}): import('@wemap/geo/dist/src/coordinates/Coordinates.js').default | undefined;
|
|
430
430
|
parseResponse(json: {
|
|
431
431
|
journeys: {
|
|
432
432
|
duration: number;
|
|
@@ -543,8 +543,8 @@ declare const remoteRouters: readonly [{
|
|
|
543
543
|
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('../model/Itinerary.js').default[]>;
|
|
544
544
|
getURL(endpointUrl: string, routerRequest: RouterRequest): string;
|
|
545
545
|
inputModeCorrespondance: (routerRequest: RouterRequest) => "walking" | "bike" | "driving" | "pmr" | "bike-safest" | "bike-fastest";
|
|
546
|
-
coordinatesToJson({ lat, lng, level }: import('@wemap/geo/src/coordinates/Coordinates.js').default): import('geojson').Position;
|
|
547
|
-
jsonToCoordinates(json: import('geojson').Position): import('@wemap/geo/src/coordinates/Coordinates.js').default;
|
|
546
|
+
coordinatesToJson({ lat, lng, level }: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default): import('geojson').Position;
|
|
547
|
+
jsonToCoordinates(json: import('geojson').Position): import('@wemap/geo/dist/src/coordinates/Coordinates.js').default;
|
|
548
548
|
getModifierFromAngle(_angle: number): "sharp right" | "sharp left" | "slight right" | "slight left" | "right" | "left" | "u turn" | "straight";
|
|
549
549
|
noRouteFoundJson(message: object): {
|
|
550
550
|
code: string;
|
|
@@ -607,7 +607,7 @@ declare const remoteRouters: readonly [{
|
|
|
607
607
|
weight: number;
|
|
608
608
|
}[] | undefined;
|
|
609
609
|
waypoints?: [] | undefined;
|
|
610
|
-
}, origin: import('@wemap/geo/src/coordinates/Coordinates.js').default, destination: import('@wemap/geo/src/coordinates/Coordinates.js').default, travelMode: import('../model/TravelMode.js').TravelMode): import('../model/Itinerary.js').default[];
|
|
610
|
+
}, origin: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default, destination: import('@wemap/geo/dist/src/coordinates/Coordinates.js').default, travelMode: import('../model/TravelMode.js').TravelMode): import('../model/Itinerary.js').default[];
|
|
611
611
|
}, {
|
|
612
612
|
readonly rname: "otp";
|
|
613
613
|
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('../model/Itinerary.js').default[]>;
|
|
@@ -709,9 +709,9 @@ declare const remoteRouters: readonly [{
|
|
|
709
709
|
readonly rname: "wemap-multi";
|
|
710
710
|
getItineraries(endpointUrl: string, routerRequest: Omit<RouterRequest, "origin" | "destination" | "waypoints"> & {
|
|
711
711
|
mapId?: number | undefined;
|
|
712
|
-
origin: string | number | import('@wemap/geo/src/coordinates/Coordinates.js').default;
|
|
713
|
-
destination: string | number | import('@wemap/geo/src/coordinates/Coordinates.js').default;
|
|
714
|
-
waypoints?: (string | number | import('@wemap/geo/src/coordinates/Coordinates.js').default)[] | undefined;
|
|
712
|
+
origin: string | number | import('@wemap/geo/dist/src/coordinates/Coordinates.js').default;
|
|
713
|
+
destination: string | number | import('@wemap/geo/dist/src/coordinates/Coordinates.js').default;
|
|
714
|
+
waypoints?: (string | number | import('@wemap/geo/dist/src/coordinates/Coordinates.js').default)[] | undefined;
|
|
715
715
|
}): Promise<import('../model/Itinerary.js').default[]>;
|
|
716
716
|
}];
|
|
717
717
|
export type RemoteRouterName = typeof remoteRouters[number]['rname'];
|
package/package.json
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
],
|
|
6
6
|
"description": "Wemap Routers utils package",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
|
-
"types": "index.ts",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/wemap/wemap-modules-js.git",
|
|
12
12
|
"directory": "packages/routers"
|
|
13
13
|
},
|
|
14
14
|
"name": "@wemap/routers",
|
|
15
|
-
"version": "12.10.8-alpha.
|
|
15
|
+
"version": "12.10.8-alpha.2",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
18
18
|
},
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"@turf/convex": "^6.5.0",
|
|
35
35
|
"@turf/helpers": "^6.5.0",
|
|
36
36
|
"@types/mapbox__polyline": "^1.0.2",
|
|
37
|
-
"@wemap/geo": "^12.10.8-alpha.
|
|
38
|
-
"@wemap/logger": "^12.10.8-alpha.
|
|
39
|
-
"@wemap/maths": "^12.10.8-alpha.
|
|
40
|
-
"@wemap/osm": "^12.10.8-alpha.
|
|
37
|
+
"@wemap/geo": "^12.10.8-alpha.2",
|
|
38
|
+
"@wemap/logger": "^12.10.8-alpha.2",
|
|
39
|
+
"@wemap/maths": "^12.10.8-alpha.2",
|
|
40
|
+
"@wemap/osm": "^12.10.8-alpha.2",
|
|
41
41
|
"@wemap/salesman.js": "^2.1.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
},
|
|
57
57
|
"./helpers/*": "./helpers/*"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "76c13880fb0d409c142cfc464dd48abc298ae58e"
|
|
60
60
|
}
|