@wemap/routers 13.2.3 → 14.2.0
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/README.md +2 -0
- package/dist/index.d.ts +45 -37
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9924 -11
- package/dist/src/ItineraryInfoManager.d.ts +14 -14
- package/dist/src/ItineraryInfoManager.d.ts.map +1 -0
- package/dist/src/RoutingError.d.ts +7 -7
- package/dist/src/RoutingError.d.ts.map +1 -0
- package/dist/src/StatusCode.d.ts +13 -11
- package/dist/src/StatusCode.d.ts.map +1 -0
- package/dist/src/Utils.d.ts +1 -0
- package/dist/src/Utils.d.ts.map +1 -0
- package/dist/src/graph/Edge.d.ts +7 -12
- package/dist/src/graph/Edge.d.ts.map +1 -0
- package/dist/src/graph/Graph.d.ts +12 -11
- package/dist/src/graph/Graph.d.ts.map +1 -0
- package/dist/src/graph/GraphProjection.d.ts +4 -3
- package/dist/src/graph/GraphProjection.d.ts.map +1 -0
- package/dist/src/graph/{GraphProjectionOptions.d.ts → GraphProjectionRules.d.ts} +2 -1
- package/dist/src/graph/GraphProjectionRules.d.ts.map +1 -0
- package/dist/src/graph/GraphRoute.d.ts +4 -3
- package/dist/src/graph/GraphRoute.d.ts.map +1 -0
- package/dist/src/graph/GraphRouter.d.ts +9 -8
- package/dist/src/graph/GraphRouter.d.ts.map +1 -0
- package/dist/src/graph/GraphRouterEngine.d.ts +19 -26
- package/dist/src/graph/GraphRouterEngine.d.ts.map +1 -0
- package/dist/src/graph/GraphRouterRules.d.ts +32 -0
- package/dist/src/graph/GraphRouterRules.d.ts.map +1 -0
- package/dist/src/graph/GraphRouterRulesBuilder.d.ts +19 -0
- package/dist/src/graph/GraphRouterRulesBuilder.d.ts.map +1 -0
- package/dist/src/graph/GraphRouterRulesMerger.d.ts +4 -0
- package/dist/src/graph/GraphRouterRulesMerger.d.ts.map +1 -0
- package/dist/src/graph/GraphRouterRulesTyping.d.ts +26 -0
- package/dist/src/graph/GraphRouterRulesTyping.d.ts.map +1 -0
- package/dist/src/graph/NoRouteFoundError.d.ts +3 -2
- package/dist/src/graph/NoRouteFoundError.d.ts.map +1 -0
- package/dist/src/graph/Vertex.d.ts +6 -8
- package/dist/src/graph/Vertex.d.ts.map +1 -0
- package/dist/src/import/geojson/GeoJsonGraphUtils.d.ts +5 -4
- package/dist/src/import/geojson/GeoJsonGraphUtils.d.ts.map +1 -0
- package/dist/src/import/geojson/GeoJsonUtils.d.ts +1 -0
- package/dist/src/import/geojson/GeoJsonUtils.d.ts.map +1 -0
- package/dist/src/import/osm/OsmGraphUtils.d.ts +5 -4
- package/dist/src/import/osm/OsmGraphUtils.d.ts.map +1 -0
- package/dist/src/model/Itinerary.d.ts +8 -7
- package/dist/src/model/Itinerary.d.ts.map +1 -0
- package/dist/src/model/Leg.d.ts +6 -5
- package/dist/src/model/Leg.d.ts.map +1 -0
- package/dist/src/model/RouterRequest.d.ts +18 -19
- package/dist/src/model/RouterRequest.d.ts.map +1 -0
- package/dist/src/model/Step.d.ts +2 -1
- package/dist/src/model/Step.d.ts.map +1 -0
- package/dist/src/model/StepExtra.d.ts +1 -0
- package/dist/src/model/StepExtra.d.ts.map +1 -0
- package/dist/src/model/StepsBuilder.d.ts +4 -3
- package/dist/src/model/StepsBuilder.d.ts.map +1 -0
- package/dist/src/model/TransitMode.d.ts +1 -0
- package/dist/src/model/TransitMode.d.ts.map +1 -0
- package/dist/src/model/TravelMode.d.ts +1 -0
- package/dist/src/model/TravelMode.d.ts.map +1 -0
- package/dist/src/model/generateSteps.d.ts +2 -0
- package/dist/src/model/generateSteps.d.ts.map +1 -0
- package/dist/src/remote/RemoteRouter.d.ts +3 -2
- package/dist/src/remote/RemoteRouter.d.ts.map +1 -0
- package/dist/src/remote/RemoteRouterManager.d.ts +120 -119
- package/dist/src/remote/RemoteRouterManager.d.ts.map +1 -0
- package/dist/src/remote/RemoteRouterUtils.d.ts +1 -0
- package/dist/src/remote/RemoteRouterUtils.d.ts.map +1 -0
- package/dist/src/remote/cityway/CitywayRemoteRouter.d.ts +4 -3
- package/dist/src/remote/cityway/CitywayRemoteRouter.d.ts.map +1 -0
- package/dist/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.d.ts +5 -4
- package/dist/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.d.ts.map +1 -0
- package/dist/src/remote/geovelo/GeoveloRemoteRouter.d.ts +4 -3
- package/dist/src/remote/geovelo/GeoveloRemoteRouter.d.ts.map +1 -0
- package/dist/src/remote/idfm/IdfmRemoteRouter.d.ts +5 -4
- package/dist/src/remote/idfm/IdfmRemoteRouter.d.ts.map +1 -0
- package/dist/src/remote/navitia/NavitiaRemoteRouter.d.ts +5 -4
- package/dist/src/remote/navitia/NavitiaRemoteRouter.d.ts.map +1 -0
- package/dist/src/remote/navitia/types.d.ts +1 -0
- package/dist/src/remote/navitia/types.d.ts.map +1 -0
- package/dist/src/remote/osrm/OsrmRemoteRouter.d.ts +7 -6
- package/dist/src/remote/osrm/OsrmRemoteRouter.d.ts.map +1 -0
- package/dist/src/remote/otp/OtpRemoteRouter.d.ts +4 -3
- package/dist/src/remote/otp/OtpRemoteRouter.d.ts.map +1 -0
- package/dist/src/remote/tictactrip/TictactripRemoteRouter.d.ts +6 -5
- package/dist/src/remote/tictactrip/TictactripRemoteRouter.d.ts.map +1 -0
- package/dist/src/remote/tictactrip/type.d.ts +1 -0
- package/dist/src/remote/tictactrip/type.d.ts.map +1 -0
- package/dist/src/remote/wemap-multi/WemapMultiRemoteRouter.d.ts +5 -4
- package/dist/src/remote/wemap-multi/WemapMultiRemoteRouter.d.ts.map +1 -0
- package/dist/src/types.d.ts +4 -3
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/wemap-multi/CustomGraphMap.d.ts +16 -13
- package/dist/src/wemap-multi/CustomGraphMap.d.ts.map +1 -0
- package/dist/src/wemap-multi/CustomGraphMapTester.d.ts +4 -3
- package/dist/src/wemap-multi/CustomGraphMapTester.d.ts.map +1 -0
- package/dist/src/wemap-multi/WemapMultiRouter.d.ts +5 -4
- package/dist/src/wemap-multi/WemapMultiRouter.d.ts.map +1 -0
- package/dist/tests/CommonTest.d.ts +4 -3
- package/dist/tests/CommonTest.d.ts.map +1 -0
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/package.json +39 -64
- package/dist/helpers/InstructionManager.d.ts +0 -19
- package/dist/helpers/InstructionManagerV1.d.ts +0 -6
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -14184
- package/dist/index.mjs.map +0 -1
- package/dist/src/graph/GraphRouterOptions.d.ts +0 -19
- package/dist/src/graph/GraphRouterOptionsBuilder.d.ts +0 -23
- package/dist/src/graph/GraphRouterOptionsFactors.d.ts +0 -8
- package/helpers/InstructionManager.ts +0 -184
- package/helpers/InstructionManagerV1.ts +0 -93
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { default as RemoteRouter } from './RemoteRouter
|
|
2
|
-
import { RouterRequest } from '../model/RouterRequest
|
|
1
|
+
import { default as RemoteRouter } from './RemoteRouter';
|
|
2
|
+
import { RouterRequest } from '../model/RouterRequest';
|
|
3
3
|
declare const remoteRouters: readonly [{
|
|
4
|
-
|
|
5
|
-
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('
|
|
4
|
+
get rname(): "cityway";
|
|
5
|
+
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('../..').Itinerary[]>;
|
|
6
6
|
getURL(endpointUrl: string, routerRequest: RouterRequest): string;
|
|
7
7
|
parseResponse(json: {
|
|
8
8
|
StatusCode: number;
|
|
@@ -90,10 +90,10 @@ declare const remoteRouters: readonly [{
|
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
Distance: number;
|
|
93
|
-
Geometry: string;
|
|
93
|
+
Geometry: string | "Null";
|
|
94
94
|
}[];
|
|
95
95
|
};
|
|
96
|
-
}
|
|
96
|
+
};
|
|
97
97
|
PTRide: {
|
|
98
98
|
TransportMode: string;
|
|
99
99
|
Duration: string;
|
|
@@ -152,7 +152,7 @@ declare const remoteRouters: readonly [{
|
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
154
|
Distance: number;
|
|
155
|
-
Geometry: string;
|
|
155
|
+
Geometry: string | "Null";
|
|
156
156
|
}[];
|
|
157
157
|
};
|
|
158
158
|
};
|
|
@@ -161,31 +161,31 @@ declare const remoteRouters: readonly [{
|
|
|
161
161
|
}[];
|
|
162
162
|
};
|
|
163
163
|
};
|
|
164
|
-
PlanTripType?: string
|
|
164
|
+
PlanTripType?: string;
|
|
165
165
|
}[];
|
|
166
|
-
}): import('
|
|
166
|
+
}): import('../..').Itinerary[];
|
|
167
167
|
parseDuration(iso8601Duration: string): number;
|
|
168
168
|
}, {
|
|
169
|
-
|
|
170
|
-
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('
|
|
169
|
+
get rname(): "navitia";
|
|
170
|
+
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('../..').Itinerary[]>;
|
|
171
171
|
getURL(endpointUrl: string, routerRequest: RouterRequest): URL;
|
|
172
172
|
getCarQuery(): URLSearchParams;
|
|
173
173
|
getWalkingQuery(): URLSearchParams;
|
|
174
174
|
getBikeQuery(): URLSearchParams;
|
|
175
|
-
getSectionCoords(section: import('./navitia/types
|
|
176
|
-
from: import('
|
|
177
|
-
to: import('
|
|
175
|
+
getSectionCoords(section: import('./navitia/types').NavitiaSection): {
|
|
176
|
+
from: import('packages/geo/dist').Coordinates;
|
|
177
|
+
to: import('packages/geo/dist').Coordinates;
|
|
178
178
|
};
|
|
179
|
-
findStepsCoord(legCoords: import('
|
|
180
|
-
coords: import('
|
|
179
|
+
findStepsCoord(legCoords: import('packages/geo/dist').Coordinates[], steps: import('./navitia/types').NavitiaIntermediateStep[]): {
|
|
180
|
+
coords: import('packages/geo/dist').Coordinates;
|
|
181
181
|
name: string;
|
|
182
182
|
distance: number;
|
|
183
183
|
}[];
|
|
184
|
-
findStepCoords(step: import('./navitia/types
|
|
185
|
-
parseResponse(json: import('./navitia/types
|
|
184
|
+
findStepCoords(step: import('./navitia/types').NavitiaSection["path"][number], section: import('./navitia/types').NavitiaSection): import('packages/geo/dist').Coordinates | undefined;
|
|
185
|
+
parseResponse(json: import('./navitia/types').NavitiaJson): import('../..').Itinerary[];
|
|
186
186
|
}, {
|
|
187
|
-
|
|
188
|
-
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('
|
|
187
|
+
get rname(): "deutsche-bahn";
|
|
188
|
+
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('../..').Itinerary[]>;
|
|
189
189
|
getURL(endpointUrl: string, routerRequest: RouterRequest): string;
|
|
190
190
|
parseResponse(json: {
|
|
191
191
|
segments: {
|
|
@@ -196,17 +196,17 @@ declare const remoteRouters: readonly [{
|
|
|
196
196
|
lon: number;
|
|
197
197
|
}[];
|
|
198
198
|
}[];
|
|
199
|
-
}, origin: import('
|
|
199
|
+
}, origin: import('packages/geo/dist').Coordinates, destination: import('packages/geo/dist').Coordinates): import('../..').Itinerary[];
|
|
200
200
|
}, {
|
|
201
|
-
|
|
202
|
-
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('
|
|
201
|
+
get rname(): "idfm";
|
|
202
|
+
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('../..').Itinerary[]>;
|
|
203
203
|
getURL(endpointUrl: string, routerRequest: RouterRequest): string;
|
|
204
204
|
getCarQuery(): URLSearchParams;
|
|
205
205
|
getWalkingQuery(): URLSearchParams;
|
|
206
206
|
getBikeQuery(): URLSearchParams;
|
|
207
207
|
getSectionCoords(section: {
|
|
208
208
|
id: string;
|
|
209
|
-
type: string;
|
|
209
|
+
type: "waiting" | "transfer" | string;
|
|
210
210
|
mode: string;
|
|
211
211
|
departure_date_time: string;
|
|
212
212
|
arrival_date_time: string;
|
|
@@ -222,8 +222,8 @@ declare const remoteRouters: readonly [{
|
|
|
222
222
|
length: number;
|
|
223
223
|
} & ({
|
|
224
224
|
instruction_start_coordinate: {
|
|
225
|
-
lat:
|
|
226
|
-
lon:
|
|
225
|
+
lat: number | string;
|
|
226
|
+
lon: number | string;
|
|
227
227
|
};
|
|
228
228
|
} | {
|
|
229
229
|
via_uri: string;
|
|
@@ -240,22 +240,22 @@ declare const remoteRouters: readonly [{
|
|
|
240
240
|
} & ({
|
|
241
241
|
stop_point: {
|
|
242
242
|
coord: {
|
|
243
|
-
lat:
|
|
244
|
-
lon:
|
|
243
|
+
lat: number | string;
|
|
244
|
+
lon: number | string;
|
|
245
245
|
};
|
|
246
246
|
};
|
|
247
247
|
} | {
|
|
248
248
|
address: {
|
|
249
249
|
coord: {
|
|
250
|
-
lat:
|
|
251
|
-
lon:
|
|
250
|
+
lat: number | string;
|
|
251
|
+
lon: number | string;
|
|
252
252
|
};
|
|
253
253
|
};
|
|
254
254
|
} | {
|
|
255
255
|
poi: {
|
|
256
256
|
coord: {
|
|
257
|
-
lat:
|
|
258
|
-
lon:
|
|
257
|
+
lat: number | string;
|
|
258
|
+
lon: number | string;
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
261
|
});
|
|
@@ -264,22 +264,22 @@ declare const remoteRouters: readonly [{
|
|
|
264
264
|
} & ({
|
|
265
265
|
stop_point: {
|
|
266
266
|
coord: {
|
|
267
|
-
lat:
|
|
268
|
-
lon:
|
|
267
|
+
lat: number | string;
|
|
268
|
+
lon: number | string;
|
|
269
269
|
};
|
|
270
270
|
};
|
|
271
271
|
} | {
|
|
272
272
|
address: {
|
|
273
273
|
coord: {
|
|
274
|
-
lat:
|
|
275
|
-
lon:
|
|
274
|
+
lat: number | string;
|
|
275
|
+
lon: number | string;
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
} | {
|
|
279
279
|
poi: {
|
|
280
280
|
coord: {
|
|
281
|
-
lat:
|
|
282
|
-
lon:
|
|
281
|
+
lat: number | string;
|
|
282
|
+
lon: number | string;
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
285
|
});
|
|
@@ -300,16 +300,16 @@ declare const remoteRouters: readonly [{
|
|
|
300
300
|
length: number;
|
|
301
301
|
traversal_time: number;
|
|
302
302
|
pathway_mode: number;
|
|
303
|
-
}[]
|
|
303
|
+
}[];
|
|
304
304
|
}): {
|
|
305
|
-
from: import('
|
|
306
|
-
to: import('
|
|
305
|
+
from: import('packages/geo/dist').Coordinates;
|
|
306
|
+
to: import('packages/geo/dist').Coordinates;
|
|
307
307
|
};
|
|
308
|
-
findStepsCoord(legCoords: import('
|
|
308
|
+
findStepsCoord(legCoords: import('packages/geo/dist').Coordinates[], steps: {
|
|
309
309
|
name: string;
|
|
310
310
|
distance: number;
|
|
311
311
|
}[]): {
|
|
312
|
-
coords: import('
|
|
312
|
+
coords: import('packages/geo/dist').Coordinates;
|
|
313
313
|
name: string;
|
|
314
314
|
distance: number;
|
|
315
315
|
}[];
|
|
@@ -318,14 +318,14 @@ declare const remoteRouters: readonly [{
|
|
|
318
318
|
length: number;
|
|
319
319
|
} & ({
|
|
320
320
|
instruction_start_coordinate: {
|
|
321
|
-
lat:
|
|
322
|
-
lon:
|
|
321
|
+
lat: number | string;
|
|
322
|
+
lon: number | string;
|
|
323
323
|
};
|
|
324
324
|
} | {
|
|
325
325
|
via_uri: string;
|
|
326
326
|
}), section: {
|
|
327
327
|
id: string;
|
|
328
|
-
type: string;
|
|
328
|
+
type: "waiting" | "transfer" | string;
|
|
329
329
|
mode: string;
|
|
330
330
|
departure_date_time: string;
|
|
331
331
|
arrival_date_time: string;
|
|
@@ -341,8 +341,8 @@ declare const remoteRouters: readonly [{
|
|
|
341
341
|
length: number;
|
|
342
342
|
} & ({
|
|
343
343
|
instruction_start_coordinate: {
|
|
344
|
-
lat:
|
|
345
|
-
lon:
|
|
344
|
+
lat: number | string;
|
|
345
|
+
lon: number | string;
|
|
346
346
|
};
|
|
347
347
|
} | {
|
|
348
348
|
via_uri: string;
|
|
@@ -359,22 +359,22 @@ declare const remoteRouters: readonly [{
|
|
|
359
359
|
} & ({
|
|
360
360
|
stop_point: {
|
|
361
361
|
coord: {
|
|
362
|
-
lat:
|
|
363
|
-
lon:
|
|
362
|
+
lat: number | string;
|
|
363
|
+
lon: number | string;
|
|
364
364
|
};
|
|
365
365
|
};
|
|
366
366
|
} | {
|
|
367
367
|
address: {
|
|
368
368
|
coord: {
|
|
369
|
-
lat:
|
|
370
|
-
lon:
|
|
369
|
+
lat: number | string;
|
|
370
|
+
lon: number | string;
|
|
371
371
|
};
|
|
372
372
|
};
|
|
373
373
|
} | {
|
|
374
374
|
poi: {
|
|
375
375
|
coord: {
|
|
376
|
-
lat:
|
|
377
|
-
lon:
|
|
376
|
+
lat: number | string;
|
|
377
|
+
lon: number | string;
|
|
378
378
|
};
|
|
379
379
|
};
|
|
380
380
|
});
|
|
@@ -383,22 +383,22 @@ declare const remoteRouters: readonly [{
|
|
|
383
383
|
} & ({
|
|
384
384
|
stop_point: {
|
|
385
385
|
coord: {
|
|
386
|
-
lat:
|
|
387
|
-
lon:
|
|
386
|
+
lat: number | string;
|
|
387
|
+
lon: number | string;
|
|
388
388
|
};
|
|
389
389
|
};
|
|
390
390
|
} | {
|
|
391
391
|
address: {
|
|
392
392
|
coord: {
|
|
393
|
-
lat:
|
|
394
|
-
lon:
|
|
393
|
+
lat: number | string;
|
|
394
|
+
lon: number | string;
|
|
395
395
|
};
|
|
396
396
|
};
|
|
397
397
|
} | {
|
|
398
398
|
poi: {
|
|
399
399
|
coord: {
|
|
400
|
-
lat:
|
|
401
|
-
lon:
|
|
400
|
+
lat: number | string;
|
|
401
|
+
lon: number | string;
|
|
402
402
|
};
|
|
403
403
|
};
|
|
404
404
|
});
|
|
@@ -419,8 +419,8 @@ declare const remoteRouters: readonly [{
|
|
|
419
419
|
length: number;
|
|
420
420
|
traversal_time: number;
|
|
421
421
|
pathway_mode: number;
|
|
422
|
-
}[]
|
|
423
|
-
}): import('
|
|
422
|
+
}[];
|
|
423
|
+
}): import('packages/geo/dist').Coordinates | undefined;
|
|
424
424
|
parseResponse(json: {
|
|
425
425
|
journeys: {
|
|
426
426
|
duration: number;
|
|
@@ -428,7 +428,7 @@ declare const remoteRouters: readonly [{
|
|
|
428
428
|
arrival_date_time: string;
|
|
429
429
|
sections: {
|
|
430
430
|
id: string;
|
|
431
|
-
type: string;
|
|
431
|
+
type: "waiting" | "transfer" | string;
|
|
432
432
|
mode: string;
|
|
433
433
|
departure_date_time: string;
|
|
434
434
|
arrival_date_time: string;
|
|
@@ -444,8 +444,8 @@ declare const remoteRouters: readonly [{
|
|
|
444
444
|
length: number;
|
|
445
445
|
} & ({
|
|
446
446
|
instruction_start_coordinate: {
|
|
447
|
-
lat:
|
|
448
|
-
lon:
|
|
447
|
+
lat: number | string;
|
|
448
|
+
lon: number | string;
|
|
449
449
|
};
|
|
450
450
|
} | {
|
|
451
451
|
via_uri: string;
|
|
@@ -462,22 +462,22 @@ declare const remoteRouters: readonly [{
|
|
|
462
462
|
} & ({
|
|
463
463
|
stop_point: {
|
|
464
464
|
coord: {
|
|
465
|
-
lat:
|
|
466
|
-
lon:
|
|
465
|
+
lat: number | string;
|
|
466
|
+
lon: number | string;
|
|
467
467
|
};
|
|
468
468
|
};
|
|
469
469
|
} | {
|
|
470
470
|
address: {
|
|
471
471
|
coord: {
|
|
472
|
-
lat:
|
|
473
|
-
lon:
|
|
472
|
+
lat: number | string;
|
|
473
|
+
lon: number | string;
|
|
474
474
|
};
|
|
475
475
|
};
|
|
476
476
|
} | {
|
|
477
477
|
poi: {
|
|
478
478
|
coord: {
|
|
479
|
-
lat:
|
|
480
|
-
lon:
|
|
479
|
+
lat: number | string;
|
|
480
|
+
lon: number | string;
|
|
481
481
|
};
|
|
482
482
|
};
|
|
483
483
|
});
|
|
@@ -486,22 +486,22 @@ declare const remoteRouters: readonly [{
|
|
|
486
486
|
} & ({
|
|
487
487
|
stop_point: {
|
|
488
488
|
coord: {
|
|
489
|
-
lat:
|
|
490
|
-
lon:
|
|
489
|
+
lat: number | string;
|
|
490
|
+
lon: number | string;
|
|
491
491
|
};
|
|
492
492
|
};
|
|
493
493
|
} | {
|
|
494
494
|
address: {
|
|
495
495
|
coord: {
|
|
496
|
-
lat:
|
|
497
|
-
lon:
|
|
496
|
+
lat: number | string;
|
|
497
|
+
lon: number | string;
|
|
498
498
|
};
|
|
499
499
|
};
|
|
500
500
|
} | {
|
|
501
501
|
poi: {
|
|
502
502
|
coord: {
|
|
503
|
-
lat:
|
|
504
|
-
lon:
|
|
503
|
+
lat: number | string;
|
|
504
|
+
lon: number | string;
|
|
505
505
|
};
|
|
506
506
|
};
|
|
507
507
|
});
|
|
@@ -522,33 +522,33 @@ declare const remoteRouters: readonly [{
|
|
|
522
522
|
length: number;
|
|
523
523
|
traversal_time: number;
|
|
524
524
|
pathway_mode: number;
|
|
525
|
-
}[]
|
|
525
|
+
}[];
|
|
526
526
|
}[];
|
|
527
527
|
}[];
|
|
528
528
|
context: {
|
|
529
529
|
timezone: string;
|
|
530
530
|
};
|
|
531
531
|
error: {
|
|
532
|
-
message?: string
|
|
532
|
+
message?: string;
|
|
533
533
|
};
|
|
534
|
-
}): import('
|
|
534
|
+
}): import('../..').Itinerary[];
|
|
535
535
|
}, {
|
|
536
|
-
|
|
537
|
-
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('
|
|
536
|
+
get rname(): "osrm";
|
|
537
|
+
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('../..').Itinerary[]>;
|
|
538
538
|
getURL(endpointUrl: string, routerRequest: RouterRequest): string;
|
|
539
539
|
inputModeCorrespondance: (routerRequest: RouterRequest) => "walking" | "bike" | "driving" | "pmr" | "bike-safest" | "bike-fastest";
|
|
540
|
-
osrmTypeToStepType(type: "depart" | "turn" | "roundabout" | "arrive" | "exit roundabout"):
|
|
541
|
-
osrmModifierToStepDirection(modifier: "straight" | "right" | "left" | "sharp right" | "sharp left" | "slight right" | "slight left" | "u turn"):
|
|
542
|
-
coordinatesToJson({ lat, lng, level }: import('
|
|
543
|
-
jsonToCoordinates(json: import('geojson').Position): import('
|
|
540
|
+
osrmTypeToStepType(type: "depart" | "turn" | "roundabout" | "arrive" | "exit roundabout"): import('../model/Step').HorizontalStepType;
|
|
541
|
+
osrmModifierToStepDirection(modifier: "straight" | "right" | "left" | "sharp right" | "sharp left" | "slight right" | "slight left" | "u turn"): import('../model/Step').HorizontalDirection;
|
|
542
|
+
coordinatesToJson({ lat, lng, level }: import('packages/geo/dist').Coordinates): import('geojson').Position;
|
|
543
|
+
jsonToCoordinates(json: import('geojson').Position): import('packages/geo/dist').Coordinates;
|
|
544
544
|
getModifierFromAngle(_angle: number): "straight" | "right" | "left" | "sharp right" | "sharp left" | "slight right" | "slight left" | "u turn";
|
|
545
545
|
noRouteFoundJson(message: object): {
|
|
546
546
|
code: string;
|
|
547
547
|
message: object;
|
|
548
548
|
};
|
|
549
|
-
itineraryToOsrmJson(itinerary: import('
|
|
550
|
-
code?: string
|
|
551
|
-
message?: string
|
|
549
|
+
itineraryToOsrmJson(itinerary: import('../..').Itinerary): {
|
|
550
|
+
code?: string;
|
|
551
|
+
message?: string;
|
|
552
552
|
routes?: {
|
|
553
553
|
geometry: import('geojson').LineString;
|
|
554
554
|
legs: {
|
|
@@ -558,14 +558,14 @@ declare const remoteRouters: readonly [{
|
|
|
558
558
|
geometry: import('geojson').LineString;
|
|
559
559
|
distance: number;
|
|
560
560
|
duration: number;
|
|
561
|
-
name?: string
|
|
561
|
+
name?: string;
|
|
562
562
|
maneuver: {
|
|
563
563
|
bearing_before: number;
|
|
564
564
|
bearing_after: number;
|
|
565
565
|
location: import('geojson').Position;
|
|
566
566
|
modifier: "straight" | "right" | "left" | "sharp right" | "sharp left" | "slight right" | "slight left" | "u turn";
|
|
567
567
|
type: "depart" | "turn" | "roundabout" | "arrive" | "exit roundabout";
|
|
568
|
-
exit?: number
|
|
568
|
+
exit?: number;
|
|
569
569
|
};
|
|
570
570
|
}[];
|
|
571
571
|
}[];
|
|
@@ -573,12 +573,12 @@ declare const remoteRouters: readonly [{
|
|
|
573
573
|
duration: number;
|
|
574
574
|
weight_name: string;
|
|
575
575
|
weight: number;
|
|
576
|
-
}[]
|
|
577
|
-
waypoints?: []
|
|
576
|
+
}[];
|
|
577
|
+
waypoints?: [];
|
|
578
578
|
};
|
|
579
579
|
parseResponse(json: {
|
|
580
|
-
code?: string
|
|
581
|
-
message?: string
|
|
580
|
+
code?: string;
|
|
581
|
+
message?: string;
|
|
582
582
|
routes?: {
|
|
583
583
|
geometry: import('geojson').LineString;
|
|
584
584
|
legs: {
|
|
@@ -588,14 +588,14 @@ declare const remoteRouters: readonly [{
|
|
|
588
588
|
geometry: import('geojson').LineString;
|
|
589
589
|
distance: number;
|
|
590
590
|
duration: number;
|
|
591
|
-
name?: string
|
|
591
|
+
name?: string;
|
|
592
592
|
maneuver: {
|
|
593
593
|
bearing_before: number;
|
|
594
594
|
bearing_after: number;
|
|
595
595
|
location: import('geojson').Position;
|
|
596
596
|
modifier: "straight" | "right" | "left" | "sharp right" | "sharp left" | "slight right" | "slight left" | "u turn";
|
|
597
597
|
type: "depart" | "turn" | "roundabout" | "arrive" | "exit roundabout";
|
|
598
|
-
exit?: number
|
|
598
|
+
exit?: number;
|
|
599
599
|
};
|
|
600
600
|
}[];
|
|
601
601
|
}[];
|
|
@@ -603,12 +603,12 @@ declare const remoteRouters: readonly [{
|
|
|
603
603
|
duration: number;
|
|
604
604
|
weight_name: string;
|
|
605
605
|
weight: number;
|
|
606
|
-
}[]
|
|
607
|
-
waypoints?: []
|
|
608
|
-
}, origin: import('
|
|
606
|
+
}[];
|
|
607
|
+
waypoints?: [];
|
|
608
|
+
}, origin: import('packages/geo/dist').Coordinates, destination: import('packages/geo/dist').Coordinates, travelMode: import('../..').TravelMode): import('../..').Itinerary[];
|
|
609
609
|
}, {
|
|
610
|
-
|
|
611
|
-
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('
|
|
610
|
+
get rname(): "otp";
|
|
611
|
+
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('../..').Itinerary[]>;
|
|
612
612
|
getURL(endpointUrl: string, routerRequest: RouterRequest): string;
|
|
613
613
|
parseResponse(json: {
|
|
614
614
|
plan: {
|
|
@@ -696,28 +696,28 @@ declare const remoteRouters: readonly [{
|
|
|
696
696
|
stopCode: string;
|
|
697
697
|
};
|
|
698
698
|
routeShortName: "string";
|
|
699
|
-
routeColor?: "string"
|
|
700
|
-
routeTextColor?: "string"
|
|
699
|
+
routeColor?: "string";
|
|
700
|
+
routeTextColor?: "string";
|
|
701
701
|
headsign: "string";
|
|
702
702
|
}))[];
|
|
703
703
|
}[];
|
|
704
704
|
};
|
|
705
|
-
}): import('
|
|
705
|
+
}): import('../..').Itinerary[];
|
|
706
706
|
}, {
|
|
707
|
-
|
|
708
|
-
getSegmentItinerary(origin: import('
|
|
709
|
-
getItineraryFromStation(origin: import('
|
|
710
|
-
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('
|
|
711
|
-
getBodyParams(routerRequest: RouterRequest): import('./tictactrip/type
|
|
712
|
-
parseResponse(json: import('./tictactrip/type
|
|
707
|
+
get rname(): "tictactrip";
|
|
708
|
+
getSegmentItinerary(origin: import('packages/geo/dist').Coordinates, destination: import('packages/geo/dist').Coordinates): Promise<import('../..').Itinerary | null>;
|
|
709
|
+
getItineraryFromStation(origin: import('packages/geo/dist').Coordinates, destination: import('packages/geo/dist').Coordinates): Promise<import('../..').Itinerary[]>;
|
|
710
|
+
getItineraries(endpointUrl: string, routerRequest: RouterRequest): Promise<import('../..').Itinerary[]>;
|
|
711
|
+
getBodyParams(routerRequest: RouterRequest): import('./tictactrip/type').TictactripRequest;
|
|
712
|
+
parseResponse(json: import('./tictactrip/type').TictactripResponse, routerRequest: RouterRequest): Promise<import('../..').Itinerary[]>;
|
|
713
713
|
}, {
|
|
714
|
-
|
|
714
|
+
get rname(): "wemap-multi";
|
|
715
715
|
getItineraries(endpointUrl: string, routerRequest: Omit<RouterRequest, "origin" | "destination" | "waypoints"> & {
|
|
716
|
-
mapId?: number
|
|
717
|
-
origin:
|
|
718
|
-
destination:
|
|
719
|
-
waypoints?: (
|
|
720
|
-
}): Promise<import('
|
|
716
|
+
mapId?: number;
|
|
717
|
+
origin: import('packages/geo/dist').Coordinates | number | string;
|
|
718
|
+
destination: import('packages/geo/dist').Coordinates | number | string;
|
|
719
|
+
waypoints?: (import('packages/geo/dist').Coordinates | number | string)[];
|
|
720
|
+
}): Promise<import('../..').Itinerary[]>;
|
|
721
721
|
}];
|
|
722
722
|
export type RemoteRouterName = typeof remoteRouters[number]['rname'];
|
|
723
723
|
export type RoutingFallbackStrategy = {
|
|
@@ -729,8 +729,9 @@ export type RoutingFallbackStrategy = {
|
|
|
729
729
|
*/
|
|
730
730
|
declare class RemoteRouterManager {
|
|
731
731
|
getRouterByName(name: RemoteRouterName): RemoteRouter;
|
|
732
|
-
getItineraries(name: RemoteRouterName, endpointUrl: string, routerRequest: RouterRequest): Promise<import('
|
|
733
|
-
getItinerariesWithFallback(routerRequest: RouterRequest, fallbackStrategy: RoutingFallbackStrategy): Promise<import('
|
|
732
|
+
getItineraries(name: RemoteRouterName, endpointUrl: string, routerRequest: RouterRequest): Promise<import('../..').Itinerary[]>;
|
|
733
|
+
getItinerariesWithFallback(routerRequest: RouterRequest, fallbackStrategy: RoutingFallbackStrategy): Promise<import('../..').Itinerary[]>;
|
|
734
734
|
}
|
|
735
735
|
declare const _default: RemoteRouterManager;
|
|
736
736
|
export default _default;
|
|
737
|
+
//# sourceMappingURL=RemoteRouterManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoteRouterManager.d.ts","sourceRoot":"","sources":["../../../src/remote/RemoteRouterManager.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAQ1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAI5D,QAAA,MAAM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IAAI,EAAE,gBAAgB,GAAG,YAAY;IAI/C,cAAc,CAAC,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa;IAQxF,0BAA0B,CAAC,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,uBAAuB;CA2B3G;;AAED,wBAAyC"}
|
|
@@ -4,3 +4,4 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export declare function dateWithTimeZone(year: number, month: number, day: number, hour: number, minute: number, second: number, timeZone?: string): Date;
|
|
6
6
|
export declare function isRoutingError(e: unknown): e is Error;
|
|
7
|
+
//# sourceMappingURL=RemoteRouterUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoteRouterUtils.d.ts","sourceRoot":"","sources":["../../../src/remote/RemoteRouterUtils.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,gBAAgB,CAC5B,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EACxC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAC5C,QAAQ,SAAiB,QAW5B;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,KAAK,CAErD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as RemoteRouter } from '../RemoteRouter
|
|
2
|
-
import { default as Itinerary } from '../../model/Itinerary
|
|
3
|
-
import { RouterRequest } from '../../model/RouterRequest
|
|
1
|
+
import { default as RemoteRouter } from '../RemoteRouter';
|
|
2
|
+
import { default as Itinerary } from '../../model/Itinerary';
|
|
3
|
+
import { RouterRequest } from '../../model/RouterRequest';
|
|
4
4
|
type CitywayCoordinates = {
|
|
5
5
|
Lat: number;
|
|
6
6
|
Long: number;
|
|
@@ -107,3 +107,4 @@ declare class CitywayRemoteRouter extends RemoteRouter {
|
|
|
107
107
|
}
|
|
108
108
|
declare const _default: CitywayRemoteRouter;
|
|
109
109
|
export default _default;
|
|
110
|
+
//# sourceMappingURL=CitywayRemoteRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CitywayRemoteRouter.d.ts","sourceRoot":"","sources":["../../../../src/remote/cityway/CitywayRemoteRouter.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAQ9C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,KAAK,kBAAkB,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AACxD,KAAK,UAAU,GAAG;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE;YACF,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,kBAAkB,CAAA;SAC/B,CAAC;QACF,SAAS,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,kBAAkB,CAAA;SAC/B,CAAA;KACJ,CAAC;IACF,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE;YACF,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,kBAAkB,CAAA;SAC/B,CAAC;QACF,SAAS,EAAE;YACP,IAAI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,kBAAkB,CAAA;SAC/B,CAAA;KACJ,CAAC;IACF,IAAI,EAAE;QACF,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAA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4BxD;;;OAGG;IACH,aAAa,CAAC,IAAI,EAAE,WAAW;IAyK/B;;;OAGG;IACH,aAAa,CAAC,eAAe,EAAE,MAAM;CAsBxC;;AAED,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Coordinates } from '
|
|
2
|
-
import { default as RemoteRouter } from '../RemoteRouter
|
|
3
|
-
import { default as Itinerary } from '../../model/Itinerary
|
|
4
|
-
import { RouterRequest } from '../../model/RouterRequest
|
|
1
|
+
import { Coordinates } from '../../../../geo';
|
|
2
|
+
import { default as RemoteRouter } from '../RemoteRouter';
|
|
3
|
+
import { default as Itinerary } from '../../model/Itinerary';
|
|
4
|
+
import { RouterRequest } from '../../model/RouterRequest';
|
|
5
5
|
type DBJson = {
|
|
6
6
|
segments: {
|
|
7
7
|
fromLevel: number;
|
|
@@ -29,3 +29,4 @@ declare class DeutscheBahnRemoteRouter extends RemoteRouter {
|
|
|
29
29
|
}
|
|
30
30
|
declare const _default: DeutscheBahnRemoteRouter;
|
|
31
31
|
export default _default;
|
|
32
|
+
//# sourceMappingURL=DeutscheBahnRemoteRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeutscheBahnRemoteRouter.d.ts","sourceRoot":"","sources":["../../../../src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAS,MAAM,YAAY,CAAC;AAEhD,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,KAAK,MAAM,GAAG;IACV,QAAQ,EAAE;QACN,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE;YACN,GAAG,EAAE,MAAM,CAAC;YACZ,GAAG,EAAE,MAAM,CAAA;SACd,EAAE,CAAA;KACN,EAAE,CAAA;CACN,CAAC;AAEF;;GAEG;AACH,cAAM,wBAAyB,SAAQ,YAAY;IAE/C;;OAEG;IACH,IAAI,KAAK,IAAY,eAAe,CAAY;IAEhD;;OAEG;IACG,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa;IAYtE,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa;IAiBxD,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW;CAqB5E;;AAED,wBAA8C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as Itinerary } from '../../model/Itinerary
|
|
2
|
-
import { default as RemoteRouter } from '../RemoteRouter
|
|
3
|
-
import { RouterRequest } from '../../model/RouterRequest
|
|
1
|
+
import { default as Itinerary } from '../../model/Itinerary';
|
|
2
|
+
import { default as RemoteRouter } from '../RemoteRouter';
|
|
3
|
+
import { RouterRequest } from '../../model/RouterRequest';
|
|
4
4
|
type DistanceDetails = {
|
|
5
5
|
total: number;
|
|
6
6
|
normalRoads: number;
|
|
@@ -104,3 +104,4 @@ declare class GeoveloRemoteRouter extends RemoteRouter {
|
|
|
104
104
|
}
|
|
105
105
|
declare const _default: GeoveloRemoteRouter;
|
|
106
106
|
export default _default;
|
|
107
|
+
//# sourceMappingURL=GeoveloRemoteRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeoveloRemoteRouter.d.ts","sourceRoot":"","sources":["../../../../src/remote/geovelo/GeoveloRemoteRouter.ts"],"names":[],"mappings":"AAIA,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAG9C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,KAAK,eAAe,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IAC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cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC;IAC7C,SAAS,EAAE,QAAQ,EAAE,CAAC;CACzB,CAAA;AA4BD;;GAEG;AACH,cAAM,mBAAoB,SAAQ,YAAY;IAE1C;;OAEG;IACH,IAAI,KAAK,IAAY,SAAS,CAAY;IAGpC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa;IAqCtE,cAAc,IAAI,WAAW;IAa7B,aAAa,CAAC,aAAa,EAAE,aAAa,GAAG,iBAAiB;IAqB9D,aAAa,CAAC,IAAI,EAAE,MAAM;CA4E7B;;AAED,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Coordinates } from '
|
|
2
|
-
import { default as Itinerary } from '../../model/Itinerary
|
|
3
|
-
import { default as RemoteRouter } from '../RemoteRouter
|
|
4
|
-
import { RouterRequest } from '../../model/RouterRequest
|
|
1
|
+
import { Coordinates } from '../../../../geo';
|
|
2
|
+
import { default as Itinerary } from '../../model/Itinerary';
|
|
3
|
+
import { default as RemoteRouter } from '../RemoteRouter';
|
|
4
|
+
import { RouterRequest } from '../../model/RouterRequest';
|
|
5
5
|
type IdfmCoordinates = {
|
|
6
6
|
lat: number | string;
|
|
7
7
|
lon: number | string;
|
|
@@ -121,3 +121,4 @@ declare class IdfmRemoteRouter extends RemoteRouter {
|
|
|
121
121
|
}
|
|
122
122
|
declare const _default: IdfmRemoteRouter;
|
|
123
123
|
export default _default;
|
|
124
|
+
//# sourceMappingURL=IdfmRemoteRouter.d.ts.map
|