@wemap/routers 12.10.8 → 12.10.9

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.
Files changed (167) hide show
  1. package/dist/helpers/InstructionManager.d.ts +20 -0
  2. package/dist/helpers/InstructionManagerV1.d.ts +7 -0
  3. package/{index.ts → dist/index.d.ts} +1 -11
  4. package/dist/index.js +1 -5099
  5. package/dist/index.js.map +1 -1
  6. package/dist/src/ItineraryInfoManager.d.ts +31 -0
  7. package/dist/src/RoutingError.d.ts +24 -0
  8. package/{src/StatusCode.ts → dist/src/StatusCode.d.ts} +2 -3
  9. package/dist/src/Utils.d.ts +6 -0
  10. package/dist/src/graph/Edge.d.ts +32 -0
  11. package/dist/src/graph/Graph.d.ts +40 -0
  12. package/dist/src/graph/GraphProjection.d.ts +11 -0
  13. package/dist/src/graph/GraphProjectionOptions.d.ts +7 -0
  14. package/dist/src/graph/GraphRoute.d.ts +19 -0
  15. package/dist/src/graph/GraphRouter.d.ts +20 -0
  16. package/dist/src/graph/GraphRouterEngine.d.ts +77 -0
  17. package/{src/graph/GraphRouterOptions.ts → dist/src/graph/GraphRouterOptions.d.ts} +5 -7
  18. package/dist/src/graph/GraphRouterOptionsBuilder.d.ts +20 -0
  19. package/dist/src/graph/NoRouteFoundError.d.ts +12 -0
  20. package/dist/src/graph/Vertex.d.ts +19 -0
  21. package/dist/src/model/Itinerary.d.ts +81 -0
  22. package/dist/src/model/Leg.d.ts +66 -0
  23. package/dist/src/model/LevelChange.d.ts +7 -0
  24. package/dist/src/model/RouterRequest.d.ts +40 -0
  25. package/dist/src/model/Step.d.ts +42 -0
  26. package/dist/src/model/StepExtra.d.ts +3 -0
  27. package/dist/src/model/StepsBuilder.d.ts +16 -0
  28. package/dist/src/model/TransitMode.d.ts +5 -0
  29. package/{src/model/TravelMode.ts → dist/src/model/TravelMode.d.ts} +1 -2
  30. package/dist/src/model/generateSteps.d.ts +0 -0
  31. package/{src/remote/RemoteRouter.ts → dist/src/remote/RemoteRouter.d.ts} +2 -7
  32. package/dist/src/remote/RemoteRouterManager.d.ts +731 -0
  33. package/dist/src/remote/RemoteRouterUtils.d.ts +6 -0
  34. package/dist/src/remote/cityway/CitywayRemoteRouter.d.ts +109 -0
  35. package/dist/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.d.ts +31 -0
  36. package/dist/src/remote/geovelo/GeoveloRemoteRouter.d.ts +106 -0
  37. package/dist/src/remote/idfm/IdfmRemoteRouter.d.ts +123 -0
  38. package/dist/src/remote/navitia/NavitiaRemoteRouter.d.ts +34 -0
  39. package/dist/src/remote/navitia/types.d.ts +87 -0
  40. package/dist/src/remote/osrm/OsrmRemoteRouter.d.ts +70 -0
  41. package/dist/src/remote/otp/OtpRemoteRouter.d.ts +69 -0
  42. package/dist/src/remote/wemap-multi/WemapMultiRemoteRouter.d.ts +19 -0
  43. package/dist/src/types.d.ts +31 -0
  44. package/dist/src/wemap-multi/CustomGraphMap.d.ts +56 -0
  45. package/dist/src/wemap-multi/CustomGraphMapTester.d.ts +39 -0
  46. package/dist/src/wemap-multi/WemapMultiRouter.d.ts +14 -0
  47. package/dist/src/wemap-osm/OsmGraphUtils.d.ts +11 -0
  48. package/dist/tests/CommonTest.d.ts +8 -0
  49. package/package.json +11 -8
  50. package/assets/biocbon-bergere-rdc-network.osm +0 -163
  51. package/assets/bureaux-wemap-montpellier-network.osm +0 -174
  52. package/assets/components.osm +0 -146
  53. package/assets/elevator-models-4.osm +0 -89
  54. package/assets/elevator-models.osm +0 -354
  55. package/assets/exit-graph.osm +0 -25
  56. package/assets/gare-de-lest-network-pp-bounds.osm +0 -1613
  57. package/assets/gare-de-lyon-extract.osm +0 -174
  58. package/assets/geovelo-montpellier.json +0 -1144
  59. package/assets/horizontal-elevator.osm +0 -12
  60. package/assets/itinerary-deutsche-bahn-1.json +0 -368
  61. package/assets/itinerary-grenoble-otp-1.json +0 -1536
  62. package/assets/itinerary-grenoble-otp-2.json +0 -1092
  63. package/assets/itinerary-info-two-points-proj.osm +0 -39
  64. package/assets/itinerary-info-two-points.osm +0 -24
  65. package/assets/itinerary-lehavre-cityway-1.json +0 -6799
  66. package/assets/itinerary-lehavre-cityway-2.json +0 -2133
  67. package/assets/itinerary-lehavre-cityway-3.json +0 -12577
  68. package/assets/itinerary-lehavre-cityway-4.json +0 -1451
  69. package/assets/itinerary-lehavre-cityway-5.json +0 -5925
  70. package/assets/itinerary-lemans-navitia.json +0 -7768
  71. package/assets/itinerary-montpellier-osrm-3.json +0 -185
  72. package/assets/itinerary-montpellier-outdoor-without-steps.json +0 -110
  73. package/assets/itinerary-montpellier-outdoor.json +0 -513
  74. package/assets/itinerary-paris-idfm-2.json +0 -1838
  75. package/assets/itinerary-paris-idfm.json +0 -27727
  76. package/assets/itinerary-step-not-on-path-osrm.json +0 -457
  77. package/assets/itinerary-with-duplicate-nodes.json +0 -110
  78. package/assets/network-conveying-backward.osm +0 -74
  79. package/assets/network-elevator.osm +0 -48
  80. package/assets/network-escalators.osm +0 -50
  81. package/assets/network-simple.osm +0 -27
  82. package/assets/network-steps-same-level.osm +0 -283
  83. package/assets/network-with-modifiers.osm +0 -39
  84. package/assets/one-way.osm +0 -46
  85. package/assets/report-map-1.osm +0 -36
  86. package/assets/report-map-2.osm +0 -29
  87. package/assets/report-map-3.osm +0 -15
  88. package/assets/rr-wemap-multi-indoor-outdoor-indoor.json +0 -1352
  89. package/assets/rr-wemap-multi-indoor-outdoor.json +0 -145
  90. package/assets/rr-wemap-multi-multi-level.json +0 -262
  91. package/assets/rr-wemap-multi-outdoor-indoor.json +0 -145
  92. package/assets/rr-wemap-multi-outdoor-outdoor.json +0 -207
  93. package/assets/rr-wemap-multi-remote-indoor-indoor.json +0 -155
  94. package/assets/rr-wemap-multi-remote-indoor-outdoor-indoor.json +0 -668
  95. package/assets/rr-wemap-multi-remote-indoor-outdoor.json +0 -154
  96. package/assets/rr-wemap-multi-remote-outdoor-indoor.json +0 -179
  97. package/assets/rr-wemap-multi-remote-outdoor-outdoor.json +0 -109
  98. package/assets/stairs-and-exit.osm +0 -47
  99. package/helpers/InstructionManager.ts +0 -184
  100. package/helpers/InstructionManagerV1.ts +0 -95
  101. package/src/ItineraryInfoManager.spec.ts +0 -183
  102. package/src/ItineraryInfoManager.ts +0 -181
  103. package/src/RoutingError.ts +0 -60
  104. package/src/Utils.ts +0 -8
  105. package/src/graph/Edge.spec.ts +0 -32
  106. package/src/graph/Edge.ts +0 -64
  107. package/src/graph/Graph.spec.ts +0 -509
  108. package/src/graph/Graph.ts +0 -272
  109. package/src/graph/GraphProjection.ts +0 -15
  110. package/src/graph/GraphProjectionOptions.ts +0 -8
  111. package/src/graph/GraphRoute.spec.ts +0 -15
  112. package/src/graph/GraphRoute.ts +0 -43
  113. package/src/graph/GraphRouter.spec.ts +0 -317
  114. package/src/graph/GraphRouter.ts +0 -229
  115. package/src/graph/GraphRouterEngine.ts +0 -248
  116. package/src/graph/GraphRouterOptionsBuilder.ts +0 -98
  117. package/src/graph/NoRouteFoundError.ts +0 -39
  118. package/src/graph/Vertex.spec.ts +0 -42
  119. package/src/graph/Vertex.ts +0 -45
  120. package/src/model/Itinerary.spec.ts +0 -134
  121. package/src/model/Itinerary.ts +0 -370
  122. package/src/model/Leg.spec.ts +0 -107
  123. package/src/model/Leg.ts +0 -224
  124. package/src/model/LevelChange.spec.ts +0 -50
  125. package/src/model/LevelChange.ts +0 -14
  126. package/src/model/RouterRequest.ts +0 -33
  127. package/src/model/Step.spec.ts +0 -99
  128. package/src/model/Step.ts +0 -90
  129. package/src/model/StepExtra.ts +0 -1
  130. package/src/model/StepsBuilder.ts +0 -242
  131. package/src/model/TransitMode.spec.ts +0 -31
  132. package/src/model/TransitMode.ts +0 -28
  133. package/src/model/generateSteps.ts +0 -102
  134. package/src/remote/RemoteRouterManager.spec.ts +0 -178
  135. package/src/remote/RemoteRouterManager.ts +0 -72
  136. package/src/remote/RemoteRouterUtils.ts +0 -25
  137. package/src/remote/cityway/CitywayRemoteRouter.spec.ts +0 -122
  138. package/src/remote/cityway/CitywayRemoteRouter.ts +0 -435
  139. package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.spec.ts +0 -52
  140. package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.ts +0 -85
  141. package/src/remote/geovelo/GeoveloRemoteRouter.spec.ts +0 -54
  142. package/src/remote/geovelo/GeoveloRemoteRouter.ts +0 -293
  143. package/src/remote/idfm/IdfmRemoteRouter.spec.ts +0 -102
  144. package/src/remote/idfm/IdfmRemoteRouter.ts +0 -523
  145. package/src/remote/navitia/NavitiaRemoteRouter.spec.ts +0 -116
  146. package/src/remote/navitia/NavitiaRemoteRouter.ts +0 -445
  147. package/src/remote/navitia/types.ts +0 -73
  148. package/src/remote/osrm/OsrmRemoteRouter.spec.ts +0 -127
  149. package/src/remote/osrm/OsrmRemoteRouter.ts +0 -303
  150. package/src/remote/otp/OtpRemoteRouter.spec.ts +0 -103
  151. package/src/remote/otp/OtpRemoteRouter.ts +0 -223
  152. package/src/remote/wemap-multi/WemapMultiRemoteRouter.spec.ts +0 -103
  153. package/src/remote/wemap-multi/WemapMultiRemoteRouter.ts +0 -56
  154. package/src/types.ts +0 -32
  155. package/src/wemap-multi/CustomGraphMap.spec.ts +0 -40
  156. package/src/wemap-multi/CustomGraphMap.ts +0 -213
  157. package/src/wemap-multi/CustomGraphMapTester.spec.ts +0 -48
  158. package/src/wemap-multi/CustomGraphMapTester.ts +0 -90
  159. package/src/wemap-multi/WemapMultiRouter.spec.ts +0 -138
  160. package/src/wemap-multi/WemapMultiRouter.ts +0 -329
  161. package/src/wemap-osm/OsmGraphUtils.spec.ts +0 -165
  162. package/src/wemap-osm/OsmGraphUtils.ts +0 -173
  163. package/src/wemap-osm/OsmRouter.elevators.spec.ts +0 -106
  164. package/src/wemap-osm/OsmRouter.spec.ts +0 -292
  165. package/tests/CommonTest.ts +0 -78
  166. package/tsconfig.json +0 -3
  167. package/vite.config.ts +0 -4
@@ -1,513 +0,0 @@
1
- {
2
- "code": "Ok",
3
- "routes": [
4
- {
5
- "geometry": {
6
- "coordinates": [
7
- [
8
- 3.875607,
9
- 43.600777
10
- ],
11
- [
12
- 3.875723,
13
- 43.600109
14
- ],
15
- [
16
- 3.875766,
17
- 43.600086
18
- ],
19
- [
20
- 3.876247,
21
- 43.599974
22
- ],
23
- [
24
- 3.876341,
25
- 43.599956
26
- ],
27
- [
28
- 3.876396,
29
- 43.599881
30
- ],
31
- [
32
- 3.876234,
33
- 43.599853
34
- ],
35
- [
36
- 3.875869,
37
- 43.599787
38
- ],
39
- [
40
- 3.875829,
41
- 43.599781
42
- ],
43
- [
44
- 3.875671,
45
- 43.599759
46
- ],
47
- [
48
- 3.875643,
49
- 43.599755
50
- ],
51
- [
52
- 3.875606,
53
- 43.599749
54
- ],
55
- [
56
- 3.875578,
57
- 43.599746
58
- ],
59
- [
60
- 3.875498,
61
- 43.599734
62
- ],
63
- [
64
- 3.87536,
65
- 43.599707
66
- ],
67
- [
68
- 3.875169,
69
- 43.599674
70
- ],
71
- [
72
- 3.874655,
73
- 43.599577
74
- ],
75
- [
76
- 3.874623,
77
- 43.599063
78
- ],
79
- [
80
- 3.873865,
81
- 43.59906
82
- ]
83
- ],
84
- "type": "LineString"
85
- },
86
- "legs": [
87
- {
88
- "steps": [
89
- {
90
- "intersections": [
91
- {
92
- "out": 0,
93
- "entry": [
94
- true
95
- ],
96
- "bearings": [
97
- 173
98
- ],
99
- "location": [
100
- 3.875607,
101
- 43.600777
102
- ]
103
- }
104
- ],
105
- "driving_side": "right",
106
- "geometry": {
107
- "coordinates": [
108
- [
109
- 3.875607,
110
- 43.600777
111
- ],
112
- [
113
- 3.875723,
114
- 43.600109
115
- ],
116
- [
117
- 3.875766,
118
- 43.600086
119
- ],
120
- [
121
- 3.876247,
122
- 43.599974
123
- ],
124
- [
125
- 3.876341,
126
- 43.599956
127
- ],
128
- [
129
- 3.876396,
130
- 43.599881
131
- ]
132
- ],
133
- "type": "LineString"
134
- },
135
- "mode": "walking",
136
- "duration": 98.7,
137
- "maneuver": {
138
- "bearing_after": 173,
139
- "type": "depart",
140
- "modifier": "left",
141
- "bearing_before": 0,
142
- "location": [
143
- 3.875607,
144
- 43.600777
145
- ]
146
- },
147
- "weight": 98.7,
148
- "distance": 137.2,
149
- "name": ""
150
- },
151
- {
152
- "intersections": [
153
- {
154
- "out": 1,
155
- "location": [
156
- 3.876396,
157
- 43.599881
158
- ],
159
- "bearings": [
160
- 75,
161
- 255,
162
- 330
163
- ],
164
- "entry": [
165
- true,
166
- true,
167
- false
168
- ],
169
- "in": 2
170
- },
171
- {
172
- "out": 2,
173
- "location": [
174
- 3.876234,
175
- 43.599853
176
- ],
177
- "bearings": [
178
- 75,
179
- 180,
180
- 255
181
- ],
182
- "entry": [
183
- false,
184
- true,
185
- true
186
- ],
187
- "in": 0
188
- },
189
- {
190
- "out": 2,
191
- "location": [
192
- 3.875829,
193
- 43.599781
194
- ],
195
- "bearings": [
196
- 75,
197
- 195,
198
- 255
199
- ],
200
- "entry": [
201
- false,
202
- true,
203
- true
204
- ],
205
- "in": 0
206
- },
207
- {
208
- "out": 2,
209
- "location": [
210
- 3.875643,
211
- 43.599755
212
- ],
213
- "bearings": [
214
- 75,
215
- 135,
216
- 255
217
- ],
218
- "entry": [
219
- false,
220
- true,
221
- true
222
- ],
223
- "in": 0
224
- },
225
- {
226
- "out": 2,
227
- "location": [
228
- 3.875498,
229
- 43.599734
230
- ],
231
- "bearings": [
232
- 75,
233
- 165,
234
- 255,
235
- 345
236
- ],
237
- "entry": [
238
- false,
239
- true,
240
- true,
241
- true
242
- ],
243
- "in": 0
244
- },
245
- {
246
- "out": 2,
247
- "location": [
248
- 3.875169,
249
- 43.599674
250
- ],
251
- "bearings": [
252
- 75,
253
- 180,
254
- 255
255
- ],
256
- "entry": [
257
- false,
258
- true,
259
- true
260
- ],
261
- "in": 0
262
- }
263
- ],
264
- "driving_side": "right",
265
- "geometry": {
266
- "coordinates": [
267
- [
268
- 3.876396,
269
- 43.599881
270
- ],
271
- [
272
- 3.876234,
273
- 43.599853
274
- ],
275
- [
276
- 3.875869,
277
- 43.599787
278
- ],
279
- [
280
- 3.875829,
281
- 43.599781
282
- ],
283
- [
284
- 3.875671,
285
- 43.599759
286
- ],
287
- [
288
- 3.875643,
289
- 43.599755
290
- ],
291
- [
292
- 3.875606,
293
- 43.599749
294
- ],
295
- [
296
- 3.875578,
297
- 43.599746
298
- ],
299
- [
300
- 3.875498,
301
- 43.599734
302
- ],
303
- [
304
- 3.87536,
305
- 43.599707
306
- ],
307
- [
308
- 3.875169,
309
- 43.599674
310
- ],
311
- [
312
- 3.874655,
313
- 43.599577
314
- ]
315
- ],
316
- "type": "LineString"
317
- },
318
- "mode": "walking",
319
- "duration": 103.9,
320
- "maneuver": {
321
- "bearing_after": 255,
322
- "type": "turn",
323
- "modifier": "right",
324
- "bearing_before": 149,
325
- "location": [
326
- 3.876396,
327
- 43.599881
328
- ]
329
- },
330
- "weight": 103.9,
331
- "distance": 144.3,
332
- "name": "Boulevard Vieussens"
333
- },
334
- {
335
- "intersections": [
336
- {
337
- "out": 1,
338
- "location": [
339
- 3.874655,
340
- 43.599577
341
- ],
342
- "bearings": [
343
- 75,
344
- 180,
345
- 255
346
- ],
347
- "entry": [
348
- false,
349
- true,
350
- true
351
- ],
352
- "in": 0
353
- }
354
- ],
355
- "driving_side": "right",
356
- "geometry": {
357
- "coordinates": [
358
- [
359
- 3.874655,
360
- 43.599577
361
- ],
362
- [
363
- 3.874623,
364
- 43.599063
365
- ]
366
- ],
367
- "type": "LineString"
368
- },
369
- "mode": "walking",
370
- "duration": 41.2,
371
- "maneuver": {
372
- "bearing_after": 181,
373
- "type": "turn",
374
- "modifier": "left",
375
- "bearing_before": 254,
376
- "location": [
377
- 3.874655,
378
- 43.599577
379
- ]
380
- },
381
- "weight": 41.2,
382
- "distance": 57.2,
383
- "name": "Impasse Bizeray"
384
- },
385
- {
386
- "intersections": [
387
- {
388
- "out": 2,
389
- "location": [
390
- 3.874623,
391
- 43.599063
392
- ],
393
- "bearings": [
394
- 0,
395
- 90,
396
- 270
397
- ],
398
- "entry": [
399
- false,
400
- true,
401
- true
402
- ],
403
- "in": 0
404
- }
405
- ],
406
- "driving_side": "right",
407
- "geometry": {
408
- "coordinates": [
409
- [
410
- 3.874623,
411
- 43.599063
412
- ],
413
- [
414
- 3.873865,
415
- 43.59906
416
- ]
417
- ],
418
- "type": "LineString"
419
- },
420
- "mode": "walking",
421
- "duration": 44,
422
- "maneuver": {
423
- "bearing_after": 268,
424
- "type": "turn",
425
- "modifier": "right",
426
- "bearing_before": 181,
427
- "location": [
428
- 3.874623,
429
- 43.599063
430
- ]
431
- },
432
- "weight": 44,
433
- "distance": 61.1,
434
- "name": "Rue du Docteur Louis Perrier"
435
- },
436
- {
437
- "intersections": [
438
- {
439
- "in": 0,
440
- "entry": [
441
- true
442
- ],
443
- "bearings": [
444
- 90
445
- ],
446
- "location": [
447
- 3.873865,
448
- 43.59906
449
- ]
450
- }
451
- ],
452
- "driving_side": "right",
453
- "geometry": {
454
- "coordinates": [
455
- [
456
- 3.873865,
457
- 43.59906
458
- ],
459
- [
460
- 3.873865,
461
- 43.59906
462
- ]
463
- ],
464
- "type": "LineString"
465
- },
466
- "mode": "walking",
467
- "duration": 0,
468
- "maneuver": {
469
- "bearing_after": 0,
470
- "type": "arrive",
471
- "modifier": "left",
472
- "bearing_before": 270,
473
- "location": [
474
- 3.873865,
475
- 43.59906
476
- ]
477
- },
478
- "weight": 0,
479
- "distance": 0,
480
- "name": "Rue du Docteur Louis Perrier"
481
- }
482
- ],
483
- "distance": 399.7,
484
- "duration": 287.8,
485
- "summary": "Boulevard Vieussens, Boulevard Berthelot",
486
- "weight": 287.8
487
- }
488
- ],
489
- "distance": 399.7,
490
- "duration": 287.8,
491
- "weight_name": "duration",
492
- "weight": 287.8
493
- }
494
- ],
495
- "waypoints": [
496
- {
497
- "hint": "d89TgaHPU4GmAQAAGwIAAB0AAADAAQAApgEAABsCAAAdAAAAwAEAAAIAAAAXIzsAiUuZAoojOwCTS5kCAQDPCg61bn8=",
498
- "name": "",
499
- "location": [
500
- 3.875607,
501
- 43.600777
502
- ]
503
- },
504
- {
505
- "hint": "dNRTgZbUU4FHAAAAuAEAAIMAAAAAAAAARwAAALgBAACDAAAAAAAAAAIAAABJHDsA1ESZAkocOwAdRJkCAwCfBQ61bn8=",
506
- "name": "Rue du Docteur Louis Perrier",
507
- "location": [
508
- 3.873865,
509
- 43.59906
510
- ]
511
- }
512
- ]
513
- }