@wemap/routers 12.10.8 → 12.11.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.
Files changed (170) 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/index.mjs +100 -5
  7. package/dist/index.mjs.map +1 -1
  8. package/dist/src/ItineraryInfoManager.d.ts +31 -0
  9. package/dist/src/RoutingError.d.ts +24 -0
  10. package/{src/StatusCode.ts → dist/src/StatusCode.d.ts} +2 -3
  11. package/dist/src/Utils.d.ts +6 -0
  12. package/dist/src/graph/Edge.d.ts +38 -0
  13. package/dist/src/graph/Graph.d.ts +40 -0
  14. package/dist/src/graph/GraphProjection.d.ts +11 -0
  15. package/dist/src/graph/GraphProjectionOptions.d.ts +7 -0
  16. package/dist/src/graph/GraphRoute.d.ts +19 -0
  17. package/dist/src/graph/GraphRouter.d.ts +20 -0
  18. package/dist/src/graph/GraphRouterEngine.d.ts +80 -0
  19. package/{src/graph/GraphRouterOptions.ts → dist/src/graph/GraphRouterOptions.d.ts} +6 -7
  20. package/dist/src/graph/GraphRouterOptionsBuilder.d.ts +23 -0
  21. package/dist/src/graph/GraphRouterOptionsFactors.d.ts +8 -0
  22. package/dist/src/graph/NoRouteFoundError.d.ts +12 -0
  23. package/dist/src/graph/Vertex.d.ts +19 -0
  24. package/dist/src/model/Itinerary.d.ts +81 -0
  25. package/dist/src/model/Leg.d.ts +66 -0
  26. package/dist/src/model/LevelChange.d.ts +7 -0
  27. package/dist/src/model/RouterRequest.d.ts +42 -0
  28. package/dist/src/model/Step.d.ts +42 -0
  29. package/dist/src/model/StepExtra.d.ts +3 -0
  30. package/dist/src/model/StepsBuilder.d.ts +16 -0
  31. package/dist/src/model/TransitMode.d.ts +5 -0
  32. package/{src/model/TravelMode.ts → dist/src/model/TravelMode.d.ts} +1 -2
  33. package/dist/src/model/generateSteps.d.ts +0 -0
  34. package/{src/remote/RemoteRouter.ts → dist/src/remote/RemoteRouter.d.ts} +2 -7
  35. package/dist/src/remote/RemoteRouterManager.d.ts +731 -0
  36. package/dist/src/remote/RemoteRouterUtils.d.ts +6 -0
  37. package/dist/src/remote/cityway/CitywayRemoteRouter.d.ts +109 -0
  38. package/dist/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.d.ts +31 -0
  39. package/dist/src/remote/geovelo/GeoveloRemoteRouter.d.ts +106 -0
  40. package/dist/src/remote/idfm/IdfmRemoteRouter.d.ts +123 -0
  41. package/dist/src/remote/navitia/NavitiaRemoteRouter.d.ts +34 -0
  42. package/dist/src/remote/navitia/types.d.ts +87 -0
  43. package/dist/src/remote/osrm/OsrmRemoteRouter.d.ts +70 -0
  44. package/dist/src/remote/otp/OtpRemoteRouter.d.ts +69 -0
  45. package/dist/src/remote/wemap-multi/WemapMultiRemoteRouter.d.ts +19 -0
  46. package/dist/src/types.d.ts +31 -0
  47. package/dist/src/wemap-multi/CustomGraphMap.d.ts +56 -0
  48. package/dist/src/wemap-multi/CustomGraphMapTester.d.ts +39 -0
  49. package/dist/src/wemap-multi/WemapMultiRouter.d.ts +14 -0
  50. package/dist/src/wemap-osm/OsmGraphUtils.d.ts +11 -0
  51. package/dist/tests/CommonTest.d.ts +8 -0
  52. package/package.json +11 -8
  53. package/assets/biocbon-bergere-rdc-network.osm +0 -163
  54. package/assets/bureaux-wemap-montpellier-network.osm +0 -174
  55. package/assets/components.osm +0 -146
  56. package/assets/elevator-models-4.osm +0 -89
  57. package/assets/elevator-models.osm +0 -354
  58. package/assets/exit-graph.osm +0 -25
  59. package/assets/gare-de-lest-network-pp-bounds.osm +0 -1613
  60. package/assets/gare-de-lyon-extract.osm +0 -174
  61. package/assets/geovelo-montpellier.json +0 -1144
  62. package/assets/horizontal-elevator.osm +0 -12
  63. package/assets/itinerary-deutsche-bahn-1.json +0 -368
  64. package/assets/itinerary-grenoble-otp-1.json +0 -1536
  65. package/assets/itinerary-grenoble-otp-2.json +0 -1092
  66. package/assets/itinerary-info-two-points-proj.osm +0 -39
  67. package/assets/itinerary-info-two-points.osm +0 -24
  68. package/assets/itinerary-lehavre-cityway-1.json +0 -6799
  69. package/assets/itinerary-lehavre-cityway-2.json +0 -2133
  70. package/assets/itinerary-lehavre-cityway-3.json +0 -12577
  71. package/assets/itinerary-lehavre-cityway-4.json +0 -1451
  72. package/assets/itinerary-lehavre-cityway-5.json +0 -5925
  73. package/assets/itinerary-lemans-navitia.json +0 -7768
  74. package/assets/itinerary-montpellier-osrm-3.json +0 -185
  75. package/assets/itinerary-montpellier-outdoor-without-steps.json +0 -110
  76. package/assets/itinerary-montpellier-outdoor.json +0 -513
  77. package/assets/itinerary-paris-idfm-2.json +0 -1838
  78. package/assets/itinerary-paris-idfm.json +0 -27727
  79. package/assets/itinerary-step-not-on-path-osrm.json +0 -457
  80. package/assets/itinerary-with-duplicate-nodes.json +0 -110
  81. package/assets/network-conveying-backward.osm +0 -74
  82. package/assets/network-elevator.osm +0 -48
  83. package/assets/network-escalators.osm +0 -50
  84. package/assets/network-simple.osm +0 -27
  85. package/assets/network-steps-same-level.osm +0 -283
  86. package/assets/network-with-modifiers.osm +0 -39
  87. package/assets/one-way.osm +0 -46
  88. package/assets/report-map-1.osm +0 -36
  89. package/assets/report-map-2.osm +0 -29
  90. package/assets/report-map-3.osm +0 -15
  91. package/assets/rr-wemap-multi-indoor-outdoor-indoor.json +0 -1352
  92. package/assets/rr-wemap-multi-indoor-outdoor.json +0 -145
  93. package/assets/rr-wemap-multi-multi-level.json +0 -262
  94. package/assets/rr-wemap-multi-outdoor-indoor.json +0 -145
  95. package/assets/rr-wemap-multi-outdoor-outdoor.json +0 -207
  96. package/assets/rr-wemap-multi-remote-indoor-indoor.json +0 -155
  97. package/assets/rr-wemap-multi-remote-indoor-outdoor-indoor.json +0 -668
  98. package/assets/rr-wemap-multi-remote-indoor-outdoor.json +0 -154
  99. package/assets/rr-wemap-multi-remote-outdoor-indoor.json +0 -179
  100. package/assets/rr-wemap-multi-remote-outdoor-outdoor.json +0 -109
  101. package/assets/stairs-and-exit.osm +0 -47
  102. package/helpers/InstructionManager.ts +0 -184
  103. package/helpers/InstructionManagerV1.ts +0 -95
  104. package/src/ItineraryInfoManager.spec.ts +0 -183
  105. package/src/ItineraryInfoManager.ts +0 -181
  106. package/src/RoutingError.ts +0 -60
  107. package/src/Utils.ts +0 -8
  108. package/src/graph/Edge.spec.ts +0 -32
  109. package/src/graph/Edge.ts +0 -64
  110. package/src/graph/Graph.spec.ts +0 -509
  111. package/src/graph/Graph.ts +0 -272
  112. package/src/graph/GraphProjection.ts +0 -15
  113. package/src/graph/GraphProjectionOptions.ts +0 -8
  114. package/src/graph/GraphRoute.spec.ts +0 -15
  115. package/src/graph/GraphRoute.ts +0 -43
  116. package/src/graph/GraphRouter.spec.ts +0 -317
  117. package/src/graph/GraphRouter.ts +0 -229
  118. package/src/graph/GraphRouterEngine.ts +0 -248
  119. package/src/graph/GraphRouterOptionsBuilder.ts +0 -98
  120. package/src/graph/NoRouteFoundError.ts +0 -39
  121. package/src/graph/Vertex.spec.ts +0 -42
  122. package/src/graph/Vertex.ts +0 -45
  123. package/src/model/Itinerary.spec.ts +0 -134
  124. package/src/model/Itinerary.ts +0 -370
  125. package/src/model/Leg.spec.ts +0 -107
  126. package/src/model/Leg.ts +0 -224
  127. package/src/model/LevelChange.spec.ts +0 -50
  128. package/src/model/LevelChange.ts +0 -14
  129. package/src/model/RouterRequest.ts +0 -33
  130. package/src/model/Step.spec.ts +0 -99
  131. package/src/model/Step.ts +0 -90
  132. package/src/model/StepExtra.ts +0 -1
  133. package/src/model/StepsBuilder.ts +0 -242
  134. package/src/model/TransitMode.spec.ts +0 -31
  135. package/src/model/TransitMode.ts +0 -28
  136. package/src/model/generateSteps.ts +0 -102
  137. package/src/remote/RemoteRouterManager.spec.ts +0 -178
  138. package/src/remote/RemoteRouterManager.ts +0 -72
  139. package/src/remote/RemoteRouterUtils.ts +0 -25
  140. package/src/remote/cityway/CitywayRemoteRouter.spec.ts +0 -122
  141. package/src/remote/cityway/CitywayRemoteRouter.ts +0 -435
  142. package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.spec.ts +0 -52
  143. package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.ts +0 -85
  144. package/src/remote/geovelo/GeoveloRemoteRouter.spec.ts +0 -54
  145. package/src/remote/geovelo/GeoveloRemoteRouter.ts +0 -293
  146. package/src/remote/idfm/IdfmRemoteRouter.spec.ts +0 -102
  147. package/src/remote/idfm/IdfmRemoteRouter.ts +0 -523
  148. package/src/remote/navitia/NavitiaRemoteRouter.spec.ts +0 -116
  149. package/src/remote/navitia/NavitiaRemoteRouter.ts +0 -445
  150. package/src/remote/navitia/types.ts +0 -73
  151. package/src/remote/osrm/OsrmRemoteRouter.spec.ts +0 -127
  152. package/src/remote/osrm/OsrmRemoteRouter.ts +0 -303
  153. package/src/remote/otp/OtpRemoteRouter.spec.ts +0 -103
  154. package/src/remote/otp/OtpRemoteRouter.ts +0 -223
  155. package/src/remote/wemap-multi/WemapMultiRemoteRouter.spec.ts +0 -103
  156. package/src/remote/wemap-multi/WemapMultiRemoteRouter.ts +0 -56
  157. package/src/types.ts +0 -32
  158. package/src/wemap-multi/CustomGraphMap.spec.ts +0 -40
  159. package/src/wemap-multi/CustomGraphMap.ts +0 -213
  160. package/src/wemap-multi/CustomGraphMapTester.spec.ts +0 -48
  161. package/src/wemap-multi/CustomGraphMapTester.ts +0 -90
  162. package/src/wemap-multi/WemapMultiRouter.spec.ts +0 -138
  163. package/src/wemap-multi/WemapMultiRouter.ts +0 -329
  164. package/src/wemap-osm/OsmGraphUtils.spec.ts +0 -165
  165. package/src/wemap-osm/OsmGraphUtils.ts +0 -173
  166. package/src/wemap-osm/OsmRouter.elevators.spec.ts +0 -106
  167. package/src/wemap-osm/OsmRouter.spec.ts +0 -292
  168. package/tests/CommonTest.ts +0 -78
  169. package/tsconfig.json +0 -3
  170. package/vite.config.ts +0 -4
@@ -1,12 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
- <osm version='0.6' generator='JOSM'>
3
- <node id='-161218670344274' action='modify' visible='true' lat='48.84835435445' lon='2.39650479554' />
4
- <node id='-161218670344470' action='modify' visible='true' lat='48.84826992031' lon='2.39687830076' />
5
- <way id='-921430905723165' action='modify' visible='true'>
6
- <nd ref='-161218670344470' />
7
- <nd ref='-161218670344274' />
8
- <tag k='highway' v='elevator' />
9
- <tag k='incline' v='up' />
10
- <tag k='level' v='-3' />
11
- </way>
12
- </osm>
@@ -1,368 +0,0 @@
1
- {
2
- "segments": [
3
- {
4
- "type": "WALK",
5
- "level": -10,
6
- "fromLevel": -10,
7
- "toLevel": -10,
8
- "length": 34.32968908548355,
9
- "polyline": [
10
- {
11
- "lon": 13.36836586,
12
- "lat": 52.52585157
13
- },
14
- {
15
- "lon": 13.36838947,
16
- "lat": 52.52584586
17
- },
18
- {
19
- "lon": 13.36841308,
20
- "lat": 52.52584014
21
- },
22
- {
23
- "lon": 13.36842018,
24
- "lat": 52.5258301
25
- },
26
- {
27
- "lon": 13.36842729,
28
- "lat": 52.52582006
29
- },
30
- {
31
- "lon": 13.36843439,
32
- "lat": 52.52581002
33
- },
34
- {
35
- "lon": 13.3684415,
36
- "lat": 52.52579998
37
- },
38
- {
39
- "lon": 13.36844861,
40
- "lat": 52.52578994
41
- },
42
- {
43
- "lon": 13.36845571,
44
- "lat": 52.5257799
45
- },
46
- {
47
- "lon": 13.36846282,
48
- "lat": 52.52576986
49
- },
50
- {
51
- "lon": 13.36846993,
52
- "lat": 52.52575983
53
- },
54
- {
55
- "lon": 13.36847703,
56
- "lat": 52.52574979
57
- },
58
- {
59
- "lon": 13.36848414,
60
- "lat": 52.52573975
61
- },
62
- {
63
- "lon": 13.36849125,
64
- "lat": 52.52572971
65
- },
66
- {
67
- "lon": 13.36849835,
68
- "lat": 52.52571967
69
- },
70
- {
71
- "lon": 13.36850546,
72
- "lat": 52.52570963
73
- },
74
- {
75
- "lon": 13.36851257,
76
- "lat": 52.52569959
77
- },
78
- {
79
- "lon": 13.36851967,
80
- "lat": 52.52568955
81
- },
82
- {
83
- "lon": 13.36852678,
84
- "lat": 52.52567951
85
- },
86
- {
87
- "lon": 13.36853389,
88
- "lat": 52.52566947
89
- },
90
- {
91
- "lon": 13.36854099,
92
- "lat": 52.52565943
93
- },
94
- {
95
- "lon": 13.3685481,
96
- "lat": 52.52564939
97
- },
98
- {
99
- "lon": 13.3685552,
100
- "lat": 52.52563935
101
- },
102
- {
103
- "lon": 13.36856231,
104
- "lat": 52.52562931
105
- },
106
- {
107
- "lon": 13.36856942,
108
- "lat": 52.52561927
109
- },
110
- {
111
- "lon": 13.36857652,
112
- "lat": 52.52560923
113
- },
114
- {
115
- "lon": 13.36858363,
116
- "lat": 52.5255992
117
- },
118
- {
119
- "lon": 13.36859074,
120
- "lat": 52.52558916
121
- },
122
- {
123
- "lon": 13.36859343,
124
- "lat": 52.52558535
125
- }
126
- ]
127
- },
128
- {
129
- "type": "ESCALATOR",
130
- "level": -10,
131
- "fromLevel": -10,
132
- "toLevel": -5,
133
- "length": 20.609539031982422,
134
- "polyline": [
135
- {
136
- "lon": 13.36859343,
137
- "lat": 52.52558535
138
- },
139
- {
140
- "lon": 13.36871379,
141
- "lat": 52.52541531
142
- }
143
- ]
144
- },
145
- {
146
- "type": "WALK",
147
- "level": -5,
148
- "fromLevel": -5,
149
- "toLevel": -5,
150
- "length": 38.39028958231211,
151
- "polyline": [
152
- {
153
- "lon": 13.36871379,
154
- "lat": 52.52541531
155
- },
156
- {
157
- "lon": 13.36871865,
158
- "lat": 52.52540845
159
- },
160
- {
161
- "lon": 13.36872576,
162
- "lat": 52.52539841
163
- },
164
- {
165
- "lon": 13.36874937,
166
- "lat": 52.52539269
167
- },
168
- {
169
- "lon": 13.36877298,
170
- "lat": 52.52538698
171
- },
172
- {
173
- "lon": 13.36879658,
174
- "lat": 52.52538126
175
- },
176
- {
177
- "lon": 13.36882019,
178
- "lat": 52.52537554
179
- },
180
- {
181
- "lon": 13.3688438,
182
- "lat": 52.52536983
183
- },
184
- {
185
- "lon": 13.36886741,
186
- "lat": 52.52536411
187
- },
188
- {
189
- "lon": 13.36889101,
190
- "lat": 52.5253584
191
- },
192
- {
193
- "lon": 13.36891462,
194
- "lat": 52.52535268
195
- },
196
- {
197
- "lon": 13.36893823,
198
- "lat": 52.52534697
199
- },
200
- {
201
- "lon": 13.36896184,
202
- "lat": 52.52534125
203
- },
204
- {
205
- "lon": 13.36896894,
206
- "lat": 52.52533121
207
- },
208
- {
209
- "lon": 13.36897605,
210
- "lat": 52.52532117
211
- },
212
- {
213
- "lon": 13.36899966,
214
- "lat": 52.52531546
215
- },
216
- {
217
- "lon": 13.36902326,
218
- "lat": 52.52530974
219
- },
220
- {
221
- "lon": 13.36904687,
222
- "lat": 52.52530402
223
- },
224
- {
225
- "lon": 13.36907048,
226
- "lat": 52.52529831
227
- },
228
- {
229
- "lon": 13.36909409,
230
- "lat": 52.52529259
231
- },
232
- {
233
- "lon": 13.36911769,
234
- "lat": 52.52528688
235
- },
236
- {
237
- "lon": 13.3691413,
238
- "lat": 52.52528116
239
- },
240
- {
241
- "lon": 13.36914853,
242
- "lat": 52.52527941
243
- },
244
- {
245
- "lon": 13.36915688,
246
- "lat": 52.52528024
247
- },
248
- {
249
- "lon": 13.36915862,
250
- "lat": 52.52528011
251
- },
252
- {
253
- "lon": 13.36916021,
254
- "lat": 52.52527938
255
- },
256
- {
257
- "lon": 13.36916145,
258
- "lat": 52.52527815
259
- },
260
- {
261
- "lon": 13.36916305,
262
- "lat": 52.5252759
263
- },
264
- {
265
- "lon": 13.36916361,
266
- "lat": 52.5252751
267
- },
268
- {
269
- "lon": 13.36916491,
270
- "lat": 52.52527544
271
- },
272
- {
273
- "lon": 13.36917202,
274
- "lat": 52.52526541
275
- },
276
- {
277
- "lon": 13.36917912,
278
- "lat": 52.52525537
279
- },
280
- {
281
- "lon": 13.36918077,
282
- "lat": 52.52525304
283
- }
284
- ]
285
- },
286
- {
287
- "type": "ESCALATOR",
288
- "level": -5,
289
- "fromLevel": -5,
290
- "toLevel": 0,
291
- "length": 21.538557052612305,
292
- "polyline": [
293
- {
294
- "lon": 13.36918077,
295
- "lat": 52.52525304
296
- },
297
- {
298
- "lon": 13.36930656,
299
- "lat": 52.52507534
300
- }
301
- ]
302
- },
303
- {
304
- "type": "WALK",
305
- "level": 0,
306
- "fromLevel": 0,
307
- "toLevel": 0,
308
- "length": 14.703765034675598,
309
- "polyline": [
310
- {
311
- "lon": 13.36930704,
312
- "lat": 52.52507466
313
- },
314
- {
315
- "lon": 13.36933065,
316
- "lat": 52.52506894
317
- },
318
- {
319
- "lon": 13.36935426,
320
- "lat": 52.52506322
321
- },
322
- {
323
- "lon": 13.36937786,
324
- "lat": 52.52505751
325
- },
326
- {
327
- "lon": 13.36940147,
328
- "lat": 52.52505179
329
- },
330
- {
331
- "lon": 13.36942508,
332
- "lat": 52.52504608
333
- },
334
- {
335
- "lon": 13.36943218,
336
- "lat": 52.52503604
337
- },
338
- {
339
- "lon": 13.36943929,
340
- "lat": 52.525026
341
- },
342
- {
343
- "lon": 13.3694464,
344
- "lat": 52.52501596
345
- },
346
- {
347
- "lon": 13.3694535,
348
- "lat": 52.52500592
349
- },
350
- {
351
- "lon": 13.36946061,
352
- "lat": 52.52499588
353
- }
354
- ]
355
- }
356
- ],
357
- "length": 129.57183978706598,
358
- "viewPort": {
359
- "topRight": {
360
- "lon": 13.36946061,
361
- "lat": 52.52585157
362
- },
363
- "bottomLeft": {
364
- "lon": 13.36836586,
365
- "lat": 52.52499588
366
- }
367
- }
368
- }