@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.
- package/dist/helpers/InstructionManager.d.ts +20 -0
- package/dist/helpers/InstructionManagerV1.d.ts +7 -0
- package/{index.ts → dist/index.d.ts} +1 -11
- package/dist/index.js +1 -5099
- package/dist/index.js.map +1 -1
- package/dist/src/ItineraryInfoManager.d.ts +31 -0
- package/dist/src/RoutingError.d.ts +24 -0
- package/{src/StatusCode.ts → dist/src/StatusCode.d.ts} +2 -3
- package/dist/src/Utils.d.ts +6 -0
- package/dist/src/graph/Edge.d.ts +32 -0
- package/dist/src/graph/Graph.d.ts +40 -0
- package/dist/src/graph/GraphProjection.d.ts +11 -0
- package/dist/src/graph/GraphProjectionOptions.d.ts +7 -0
- package/dist/src/graph/GraphRoute.d.ts +19 -0
- package/dist/src/graph/GraphRouter.d.ts +20 -0
- package/dist/src/graph/GraphRouterEngine.d.ts +77 -0
- package/{src/graph/GraphRouterOptions.ts → dist/src/graph/GraphRouterOptions.d.ts} +5 -7
- package/dist/src/graph/GraphRouterOptionsBuilder.d.ts +20 -0
- package/dist/src/graph/NoRouteFoundError.d.ts +12 -0
- package/dist/src/graph/Vertex.d.ts +19 -0
- package/dist/src/model/Itinerary.d.ts +81 -0
- package/dist/src/model/Leg.d.ts +66 -0
- package/dist/src/model/LevelChange.d.ts +7 -0
- package/dist/src/model/RouterRequest.d.ts +40 -0
- package/dist/src/model/Step.d.ts +42 -0
- package/dist/src/model/StepExtra.d.ts +3 -0
- package/dist/src/model/StepsBuilder.d.ts +16 -0
- package/dist/src/model/TransitMode.d.ts +5 -0
- package/{src/model/TravelMode.ts → dist/src/model/TravelMode.d.ts} +1 -2
- package/dist/src/model/generateSteps.d.ts +0 -0
- package/{src/remote/RemoteRouter.ts → dist/src/remote/RemoteRouter.d.ts} +2 -7
- package/dist/src/remote/RemoteRouterManager.d.ts +731 -0
- package/dist/src/remote/RemoteRouterUtils.d.ts +6 -0
- package/dist/src/remote/cityway/CitywayRemoteRouter.d.ts +109 -0
- package/dist/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.d.ts +31 -0
- package/dist/src/remote/geovelo/GeoveloRemoteRouter.d.ts +106 -0
- package/dist/src/remote/idfm/IdfmRemoteRouter.d.ts +123 -0
- package/dist/src/remote/navitia/NavitiaRemoteRouter.d.ts +34 -0
- package/dist/src/remote/navitia/types.d.ts +87 -0
- package/dist/src/remote/osrm/OsrmRemoteRouter.d.ts +70 -0
- package/dist/src/remote/otp/OtpRemoteRouter.d.ts +69 -0
- package/dist/src/remote/wemap-multi/WemapMultiRemoteRouter.d.ts +19 -0
- package/dist/src/types.d.ts +31 -0
- package/dist/src/wemap-multi/CustomGraphMap.d.ts +56 -0
- package/dist/src/wemap-multi/CustomGraphMapTester.d.ts +39 -0
- package/dist/src/wemap-multi/WemapMultiRouter.d.ts +14 -0
- package/dist/src/wemap-osm/OsmGraphUtils.d.ts +11 -0
- package/dist/tests/CommonTest.d.ts +8 -0
- package/package.json +11 -8
- package/assets/biocbon-bergere-rdc-network.osm +0 -163
- package/assets/bureaux-wemap-montpellier-network.osm +0 -174
- package/assets/components.osm +0 -146
- package/assets/elevator-models-4.osm +0 -89
- package/assets/elevator-models.osm +0 -354
- package/assets/exit-graph.osm +0 -25
- package/assets/gare-de-lest-network-pp-bounds.osm +0 -1613
- package/assets/gare-de-lyon-extract.osm +0 -174
- package/assets/geovelo-montpellier.json +0 -1144
- package/assets/horizontal-elevator.osm +0 -12
- package/assets/itinerary-deutsche-bahn-1.json +0 -368
- package/assets/itinerary-grenoble-otp-1.json +0 -1536
- package/assets/itinerary-grenoble-otp-2.json +0 -1092
- package/assets/itinerary-info-two-points-proj.osm +0 -39
- package/assets/itinerary-info-two-points.osm +0 -24
- package/assets/itinerary-lehavre-cityway-1.json +0 -6799
- package/assets/itinerary-lehavre-cityway-2.json +0 -2133
- package/assets/itinerary-lehavre-cityway-3.json +0 -12577
- package/assets/itinerary-lehavre-cityway-4.json +0 -1451
- package/assets/itinerary-lehavre-cityway-5.json +0 -5925
- package/assets/itinerary-lemans-navitia.json +0 -7768
- package/assets/itinerary-montpellier-osrm-3.json +0 -185
- package/assets/itinerary-montpellier-outdoor-without-steps.json +0 -110
- package/assets/itinerary-montpellier-outdoor.json +0 -513
- package/assets/itinerary-paris-idfm-2.json +0 -1838
- package/assets/itinerary-paris-idfm.json +0 -27727
- package/assets/itinerary-step-not-on-path-osrm.json +0 -457
- package/assets/itinerary-with-duplicate-nodes.json +0 -110
- package/assets/network-conveying-backward.osm +0 -74
- package/assets/network-elevator.osm +0 -48
- package/assets/network-escalators.osm +0 -50
- package/assets/network-simple.osm +0 -27
- package/assets/network-steps-same-level.osm +0 -283
- package/assets/network-with-modifiers.osm +0 -39
- package/assets/one-way.osm +0 -46
- package/assets/report-map-1.osm +0 -36
- package/assets/report-map-2.osm +0 -29
- package/assets/report-map-3.osm +0 -15
- package/assets/rr-wemap-multi-indoor-outdoor-indoor.json +0 -1352
- package/assets/rr-wemap-multi-indoor-outdoor.json +0 -145
- package/assets/rr-wemap-multi-multi-level.json +0 -262
- package/assets/rr-wemap-multi-outdoor-indoor.json +0 -145
- package/assets/rr-wemap-multi-outdoor-outdoor.json +0 -207
- package/assets/rr-wemap-multi-remote-indoor-indoor.json +0 -155
- package/assets/rr-wemap-multi-remote-indoor-outdoor-indoor.json +0 -668
- package/assets/rr-wemap-multi-remote-indoor-outdoor.json +0 -154
- package/assets/rr-wemap-multi-remote-outdoor-indoor.json +0 -179
- package/assets/rr-wemap-multi-remote-outdoor-outdoor.json +0 -109
- package/assets/stairs-and-exit.osm +0 -47
- package/helpers/InstructionManager.ts +0 -184
- package/helpers/InstructionManagerV1.ts +0 -95
- package/src/ItineraryInfoManager.spec.ts +0 -183
- package/src/ItineraryInfoManager.ts +0 -181
- package/src/RoutingError.ts +0 -60
- package/src/Utils.ts +0 -8
- package/src/graph/Edge.spec.ts +0 -32
- package/src/graph/Edge.ts +0 -64
- package/src/graph/Graph.spec.ts +0 -509
- package/src/graph/Graph.ts +0 -272
- package/src/graph/GraphProjection.ts +0 -15
- package/src/graph/GraphProjectionOptions.ts +0 -8
- package/src/graph/GraphRoute.spec.ts +0 -15
- package/src/graph/GraphRoute.ts +0 -43
- package/src/graph/GraphRouter.spec.ts +0 -317
- package/src/graph/GraphRouter.ts +0 -229
- package/src/graph/GraphRouterEngine.ts +0 -248
- package/src/graph/GraphRouterOptionsBuilder.ts +0 -98
- package/src/graph/NoRouteFoundError.ts +0 -39
- package/src/graph/Vertex.spec.ts +0 -42
- package/src/graph/Vertex.ts +0 -45
- package/src/model/Itinerary.spec.ts +0 -134
- package/src/model/Itinerary.ts +0 -370
- package/src/model/Leg.spec.ts +0 -107
- package/src/model/Leg.ts +0 -224
- package/src/model/LevelChange.spec.ts +0 -50
- package/src/model/LevelChange.ts +0 -14
- package/src/model/RouterRequest.ts +0 -33
- package/src/model/Step.spec.ts +0 -99
- package/src/model/Step.ts +0 -90
- package/src/model/StepExtra.ts +0 -1
- package/src/model/StepsBuilder.ts +0 -242
- package/src/model/TransitMode.spec.ts +0 -31
- package/src/model/TransitMode.ts +0 -28
- package/src/model/generateSteps.ts +0 -102
- package/src/remote/RemoteRouterManager.spec.ts +0 -178
- package/src/remote/RemoteRouterManager.ts +0 -72
- package/src/remote/RemoteRouterUtils.ts +0 -25
- package/src/remote/cityway/CitywayRemoteRouter.spec.ts +0 -122
- package/src/remote/cityway/CitywayRemoteRouter.ts +0 -435
- package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.spec.ts +0 -52
- package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.ts +0 -85
- package/src/remote/geovelo/GeoveloRemoteRouter.spec.ts +0 -54
- package/src/remote/geovelo/GeoveloRemoteRouter.ts +0 -293
- package/src/remote/idfm/IdfmRemoteRouter.spec.ts +0 -102
- package/src/remote/idfm/IdfmRemoteRouter.ts +0 -523
- package/src/remote/navitia/NavitiaRemoteRouter.spec.ts +0 -116
- package/src/remote/navitia/NavitiaRemoteRouter.ts +0 -445
- package/src/remote/navitia/types.ts +0 -73
- package/src/remote/osrm/OsrmRemoteRouter.spec.ts +0 -127
- package/src/remote/osrm/OsrmRemoteRouter.ts +0 -303
- package/src/remote/otp/OtpRemoteRouter.spec.ts +0 -103
- package/src/remote/otp/OtpRemoteRouter.ts +0 -223
- package/src/remote/wemap-multi/WemapMultiRemoteRouter.spec.ts +0 -103
- package/src/remote/wemap-multi/WemapMultiRemoteRouter.ts +0 -56
- package/src/types.ts +0 -32
- package/src/wemap-multi/CustomGraphMap.spec.ts +0 -40
- package/src/wemap-multi/CustomGraphMap.ts +0 -213
- package/src/wemap-multi/CustomGraphMapTester.spec.ts +0 -48
- package/src/wemap-multi/CustomGraphMapTester.ts +0 -90
- package/src/wemap-multi/WemapMultiRouter.spec.ts +0 -138
- package/src/wemap-multi/WemapMultiRouter.ts +0 -329
- package/src/wemap-osm/OsmGraphUtils.spec.ts +0 -165
- package/src/wemap-osm/OsmGraphUtils.ts +0 -173
- package/src/wemap-osm/OsmRouter.elevators.spec.ts +0 -106
- package/src/wemap-osm/OsmRouter.spec.ts +0 -292
- package/tests/CommonTest.ts +0 -78
- package/tsconfig.json +0 -3
- package/vite.config.ts +0 -4
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"code": "Ok",
|
|
3
|
-
"routes": [
|
|
4
|
-
{
|
|
5
|
-
"geometry": {
|
|
6
|
-
"coordinates": [
|
|
7
|
-
[
|
|
8
|
-
3.887244,
|
|
9
|
-
43.605663
|
|
10
|
-
],
|
|
11
|
-
[
|
|
12
|
-
3.887534,
|
|
13
|
-
43.605579
|
|
14
|
-
],
|
|
15
|
-
[
|
|
16
|
-
3.887765,
|
|
17
|
-
43.605512
|
|
18
|
-
],
|
|
19
|
-
[
|
|
20
|
-
3.887776,
|
|
21
|
-
43.605508
|
|
22
|
-
],
|
|
23
|
-
[
|
|
24
|
-
3.887849,
|
|
25
|
-
43.605489
|
|
26
|
-
]
|
|
27
|
-
],
|
|
28
|
-
"type": "LineString"
|
|
29
|
-
},
|
|
30
|
-
"legs": [
|
|
31
|
-
{
|
|
32
|
-
"steps": [
|
|
33
|
-
{
|
|
34
|
-
"intersections": [
|
|
35
|
-
{
|
|
36
|
-
"out": 0,
|
|
37
|
-
"entry": [
|
|
38
|
-
true
|
|
39
|
-
],
|
|
40
|
-
"bearings": [
|
|
41
|
-
112
|
|
42
|
-
],
|
|
43
|
-
"location": [
|
|
44
|
-
3.887244,
|
|
45
|
-
43.605663
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"out": 1,
|
|
50
|
-
"location": [
|
|
51
|
-
3.887534,
|
|
52
|
-
43.605579
|
|
53
|
-
],
|
|
54
|
-
"bearings": [
|
|
55
|
-
30,
|
|
56
|
-
105,
|
|
57
|
-
285
|
|
58
|
-
],
|
|
59
|
-
"entry": [
|
|
60
|
-
true,
|
|
61
|
-
true,
|
|
62
|
-
false
|
|
63
|
-
],
|
|
64
|
-
"in": 2
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"driving_side": "right",
|
|
68
|
-
"geometry": {
|
|
69
|
-
"coordinates": [
|
|
70
|
-
[
|
|
71
|
-
3.887244,
|
|
72
|
-
43.605663
|
|
73
|
-
],
|
|
74
|
-
[
|
|
75
|
-
3.887534,
|
|
76
|
-
43.605579
|
|
77
|
-
],
|
|
78
|
-
[
|
|
79
|
-
3.887765,
|
|
80
|
-
43.605512
|
|
81
|
-
],
|
|
82
|
-
[
|
|
83
|
-
3.887776,
|
|
84
|
-
43.605508
|
|
85
|
-
],
|
|
86
|
-
[
|
|
87
|
-
3.887849,
|
|
88
|
-
43.605489
|
|
89
|
-
]
|
|
90
|
-
],
|
|
91
|
-
"type": "LineString"
|
|
92
|
-
},
|
|
93
|
-
"mode": "walking",
|
|
94
|
-
"duration": 39.7,
|
|
95
|
-
"maneuver": {
|
|
96
|
-
"bearing_after": 112,
|
|
97
|
-
"location": [
|
|
98
|
-
3.887244,
|
|
99
|
-
43.605663
|
|
100
|
-
],
|
|
101
|
-
"bearing_before": 0,
|
|
102
|
-
"type": "depart"
|
|
103
|
-
},
|
|
104
|
-
"weight": 39.7,
|
|
105
|
-
"distance": 52.4,
|
|
106
|
-
"name": "Avenue du Pont Juvénal"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"intersections": [
|
|
110
|
-
{
|
|
111
|
-
"in": 0,
|
|
112
|
-
"entry": [
|
|
113
|
-
true
|
|
114
|
-
],
|
|
115
|
-
"bearings": [
|
|
116
|
-
290
|
|
117
|
-
],
|
|
118
|
-
"location": [
|
|
119
|
-
3.887849,
|
|
120
|
-
43.605489
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
],
|
|
124
|
-
"driving_side": "right",
|
|
125
|
-
"geometry": {
|
|
126
|
-
"coordinates": [
|
|
127
|
-
[
|
|
128
|
-
3.887849,
|
|
129
|
-
43.605489
|
|
130
|
-
],
|
|
131
|
-
[
|
|
132
|
-
3.887849,
|
|
133
|
-
43.605489
|
|
134
|
-
]
|
|
135
|
-
],
|
|
136
|
-
"type": "LineString"
|
|
137
|
-
},
|
|
138
|
-
"mode": "walking",
|
|
139
|
-
"duration": 0,
|
|
140
|
-
"maneuver": {
|
|
141
|
-
"bearing_after": 0,
|
|
142
|
-
"type": "arrive",
|
|
143
|
-
"modifier": "right",
|
|
144
|
-
"bearing_before": 110,
|
|
145
|
-
"location": [
|
|
146
|
-
3.887849,
|
|
147
|
-
43.605489
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
|
-
"weight": 0,
|
|
151
|
-
"distance": 0,
|
|
152
|
-
"name": "Avenue du Pont Juvénal"
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"distance": 52.4,
|
|
156
|
-
"duration": 39.7,
|
|
157
|
-
"summary": "Avenue du Pont Juvénal",
|
|
158
|
-
"weight": 39.7
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
"distance": 52.4,
|
|
162
|
-
"duration": 39.7,
|
|
163
|
-
"weight_name": "duration",
|
|
164
|
-
"weight": 39.7
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"waypoints": [
|
|
168
|
-
{
|
|
169
|
-
"hint": "-y1UgREuVIG1AAAAbQEAAAAAAAAWAAAAtQAAAG0BAAAAAAAAFgAAAAIAAACMUDsAn16ZAoxQOwCfXpkCAAA_Eg61bn8=",
|
|
170
|
-
"name": "Avenue du Pont Juvénal",
|
|
171
|
-
"location": [
|
|
172
|
-
3.887244,
|
|
173
|
-
43.605663
|
|
174
|
-
]
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"hint": "-S1UgRUuVIEtAAAALAAAAKsAAAAAAAAALQAAACwAAACrAAAAAAAAAAIAAADpUjsA8V2ZAsNSOwCjXZkCAwDfBg61bn8=",
|
|
178
|
-
"name": "Avenue du Pont Juvénal",
|
|
179
|
-
"location": [
|
|
180
|
-
3.887849,
|
|
181
|
-
43.605489
|
|
182
|
-
]
|
|
183
|
-
}
|
|
184
|
-
]
|
|
185
|
-
}
|
|
@@ -1,110 +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
|
-
"distance": 399.7,
|
|
87
|
-
"duration": 287.8,
|
|
88
|
-
"weight_name": "duration",
|
|
89
|
-
"weight": 287.8
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"waypoints": [
|
|
93
|
-
{
|
|
94
|
-
"hint": "d89TgaHPU4GmAQAAGwIAAB0AAADAAQAApgEAABsCAAAdAAAAwAEAAAIAAAAXIzsAiUuZAoojOwCTS5kCAQDPCg61bn8=",
|
|
95
|
-
"name": "",
|
|
96
|
-
"location": [
|
|
97
|
-
3.875607,
|
|
98
|
-
43.600777
|
|
99
|
-
]
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"hint": "dNRTgZbUU4FHAAAAuAEAAIMAAAAAAAAARwAAALgBAACDAAAAAAAAAAIAAABJHDsA1ESZAkocOwAdRJkCAwCfBQ61bn8=",
|
|
103
|
-
"name": "Rue du Docteur Louis Perrier",
|
|
104
|
-
"location": [
|
|
105
|
-
3.873865,
|
|
106
|
-
43.59906
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
]
|
|
110
|
-
}
|