@wemap/routers 12.0.0-alpha.6 → 12.0.0-alpha.8

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 (43) hide show
  1. package/assets/rr-wemap-multi-multi-level.json +6 -6
  2. package/assets/rr-wemap-multi-remote-indoor-indoor.json +6 -6
  3. package/assets/rr-wemap-multi-remote-indoor-outdoor-indoor.json +10 -10
  4. package/assets/rr-wemap-multi-remote-indoor-outdoor.json +8 -8
  5. package/assets/rr-wemap-multi-remote-outdoor-indoor.json +8 -8
  6. package/assets/rr-wemap-multi-remote-outdoor-outdoor.json +6 -6
  7. package/dist/index.js +336 -381
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +336 -381
  10. package/dist/index.mjs.map +1 -1
  11. package/index.ts +4 -6
  12. package/package.json +2 -2
  13. package/src/graph/GraphRouterOptions.ts +5 -5
  14. package/src/graph/GraphRouterOptionsBuilder.ts +26 -26
  15. package/src/model/Itinerary.spec.ts +12 -12
  16. package/src/model/Itinerary.ts +34 -33
  17. package/src/model/Leg.spec.ts +10 -10
  18. package/src/model/Leg.ts +34 -34
  19. package/src/model/RouterRequest.ts +23 -0
  20. package/src/model/RouterResponse.spec.ts +14 -14
  21. package/src/model/RouterResponse.ts +17 -17
  22. package/src/model/StepsBuilder.ts +18 -40
  23. package/src/remote/RemoteRouter.ts +2 -11
  24. package/src/remote/RemoteRouterManager.ts +9 -25
  25. package/src/remote/cityway/CitywayRemoteRouter.spec.ts +9 -9
  26. package/src/remote/cityway/CitywayRemoteRouter.ts +30 -30
  27. package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.spec.ts +9 -9
  28. package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.ts +11 -15
  29. package/src/remote/idfm/IdfmRemoteRouter.spec.ts +6 -6
  30. package/src/remote/idfm/IdfmRemoteRouter.ts +27 -33
  31. package/src/remote/osrm/OsrmRemoteRouter.spec.ts +19 -19
  32. package/src/remote/osrm/OsrmRemoteRouter.ts +27 -45
  33. package/src/remote/otp/OtpRemoteRouter.spec.ts +14 -14
  34. package/src/remote/otp/OtpRemoteRouter.ts +24 -27
  35. package/src/remote/wemap-multi/WemapMultiRemoteRouter.spec.ts +35 -25
  36. package/src/remote/wemap-multi/WemapMultiRemoteRouter.ts +17 -15
  37. package/src/wemap-multi/CustomNetworkMap.ts +4 -4
  38. package/src/wemap-multi/WemapMultiRouter.spec.ts +39 -27
  39. package/src/wemap-multi/WemapMultiRouter.ts +134 -174
  40. package/src/remote/RemoteRouterOptions.ts +0 -3
  41. package/src/remote/wemap-multi/WemapMultiRemoteRouterOptions.ts +0 -4
  42. package/src/remote/wemap-multi/WemapMultiRemoteRouterPayload.ts +0 -37
  43. package/src/wemap-multi/WemapMultiRouterOptions.ts +0 -14
@@ -3,13 +3,13 @@
3
3
  "wemap-meta",
4
4
  "wemap"
5
5
  ],
6
- "from": [
6
+ "origin": [
7
7
  43.6091851,
8
8
  3.8841386,
9
9
  1.5999999999999996,
10
10
  2
11
11
  ],
12
- "to": [
12
+ "destination": [
13
13
  43.6093145,
14
14
  3.8842585,
15
15
  0,
@@ -17,13 +17,13 @@
17
17
  ],
18
18
  "itineraries": [
19
19
  {
20
- "from": [
20
+ "origin": [
21
21
  43.6091851,
22
22
  3.8841386,
23
23
  1.5999999999999996,
24
24
  2
25
25
  ],
26
- "to": [
26
+ "destination": [
27
27
  43.6093145,
28
28
  3.8842585,
29
29
  0,
@@ -35,7 +35,7 @@
35
35
  "legs": [
36
36
  {
37
37
  "mode": "WALK",
38
- "from": {
38
+ "start": {
39
39
  "coords": [
40
40
  43.6091851,
41
41
  3.8841386,
@@ -43,7 +43,7 @@
43
43
  2
44
44
  ]
45
45
  },
46
- "to": {
46
+ "end": {
47
47
  "coords": [
48
48
  43.6093145,
49
49
  3.8842585,
@@ -3,21 +3,21 @@
3
3
  "wemap-meta",
4
4
  "wemap"
5
5
  ],
6
- "from": [
6
+ "origin": [
7
7
  48.8725992,
8
8
  2.343431
9
9
  ],
10
- "to": [
10
+ "destination": [
11
11
  48.8725694,
12
12
  2.3433
13
13
  ],
14
14
  "itineraries": [
15
15
  {
16
- "from": [
16
+ "origin": [
17
17
  48.8725992,
18
18
  2.343431
19
19
  ],
20
- "to": [
20
+ "destination": [
21
21
  48.8725694,
22
22
  2.3433
23
23
  ],
@@ -27,13 +27,13 @@
27
27
  "legs": [
28
28
  {
29
29
  "mode": "WALK",
30
- "from": {
30
+ "start": {
31
31
  "coords": [
32
32
  48.8725992,
33
33
  2.343431
34
34
  ]
35
35
  },
36
- "to": {
36
+ "end": {
37
37
  "coords": [
38
38
  48.8725694,
39
39
  2.3433
@@ -4,11 +4,11 @@
4
4
  "osrm",
5
5
  "wemap"
6
6
  ],
7
- "from": [
7
+ "origin": [
8
8
  48.8725992,
9
9
  2.343431
10
10
  ],
11
- "to": [
11
+ "destination": [
12
12
  48.8772962,
13
13
  2.3584458,
14
14
  null,
@@ -16,11 +16,11 @@
16
16
  ],
17
17
  "itineraries": [
18
18
  {
19
- "from": [
19
+ "origin": [
20
20
  48.8725992,
21
21
  2.343431
22
22
  ],
23
- "to": [
23
+ "destination": [
24
24
  48.8772962,
25
25
  2.3584458,
26
26
  null,
@@ -32,13 +32,13 @@
32
32
  "legs": [
33
33
  {
34
34
  "mode": "WALK",
35
- "from": {
35
+ "start": {
36
36
  "coords": [
37
37
  48.8725992,
38
38
  2.343431
39
39
  ]
40
40
  },
41
- "to": {
41
+ "end": {
42
42
  "coords": [
43
43
  48.87262168252,
44
44
  2.34327125172
@@ -96,13 +96,13 @@
96
96
  },
97
97
  {
98
98
  "mode": "WALK",
99
- "from": {
99
+ "start": {
100
100
  "coords": [
101
101
  48.872668,
102
102
  2.343286
103
103
  ]
104
104
  },
105
- "to": {
105
+ "end": {
106
106
  "coords": [
107
107
  48.877416,
108
108
  2.358155
@@ -551,7 +551,7 @@
551
551
  },
552
552
  {
553
553
  "mode": "WALK",
554
- "from": {
554
+ "start": {
555
555
  "coords": [
556
556
  48.8774156,
557
557
  2.3581551,
@@ -559,7 +559,7 @@
559
559
  0
560
560
  ]
561
561
  },
562
- "to": {
562
+ "end": {
563
563
  "coords": [
564
564
  48.8772962,
565
565
  2.3584458,
@@ -4,21 +4,21 @@
4
4
  "osrm",
5
5
  "wemap"
6
6
  ],
7
- "from": [
7
+ "origin": [
8
8
  48.8725992,
9
9
  2.343431
10
10
  ],
11
- "to": [
11
+ "destination": [
12
12
  48.8726513,
13
13
  2.343449
14
14
  ],
15
15
  "itineraries": [
16
16
  {
17
- "from": [
17
+ "origin": [
18
18
  48.8725992,
19
19
  2.343431
20
20
  ],
21
- "to": [
21
+ "destination": [
22
22
  48.8726513,
23
23
  2.343449
24
24
  ],
@@ -28,13 +28,13 @@
28
28
  "legs": [
29
29
  {
30
30
  "mode": "WALK",
31
- "from": {
31
+ "start": {
32
32
  "coords": [
33
33
  48.8725992,
34
34
  2.343431
35
35
  ]
36
36
  },
37
- "to": {
37
+ "end": {
38
38
  "coords": [
39
39
  48.87262168252,
40
40
  2.34327125172
@@ -92,13 +92,13 @@
92
92
  },
93
93
  {
94
94
  "mode": "WALK",
95
- "from": {
95
+ "start": {
96
96
  "coords": [
97
97
  48.872668,
98
98
  2.343286
99
99
  ]
100
100
  },
101
- "to": {
101
+ "end": {
102
102
  "coords": [
103
103
  48.872645,
104
104
  2.343447
@@ -4,21 +4,21 @@
4
4
  "osrm",
5
5
  "wemap"
6
6
  ],
7
- "from": [
7
+ "origin": [
8
8
  48.8726085,
9
9
  2.3434289
10
10
  ],
11
- "to": [
11
+ "destination": [
12
12
  48.8725694,
13
13
  2.3433
14
14
  ],
15
15
  "itineraries": [
16
16
  {
17
- "from": [
17
+ "origin": [
18
18
  48.8726085,
19
19
  2.3434289
20
20
  ],
21
- "to": [
21
+ "destination": [
22
22
  48.8725694,
23
23
  2.3433
24
24
  ],
@@ -28,13 +28,13 @@
28
28
  "legs": [
29
29
  {
30
30
  "mode": "WALK",
31
- "from": {
31
+ "start": {
32
32
  "coords": [
33
33
  48.872645,
34
34
  2.343441
35
35
  ]
36
36
  },
37
- "to": {
37
+ "end": {
38
38
  "coords": [
39
39
  48.872668,
40
40
  2.343286
@@ -86,13 +86,13 @@
86
86
  },
87
87
  {
88
88
  "mode": "WALK",
89
- "from": {
89
+ "start": {
90
90
  "coords": [
91
91
  48.87262168252,
92
92
  2.34327125172
93
93
  ]
94
94
  },
95
- "to": {
95
+ "end": {
96
96
  "coords": [
97
97
  48.8725694,
98
98
  2.3433
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "routerName": "osrm",
3
- "from": [
3
+ "origin": [
4
4
  48.8726513,
5
5
  2.343449
6
6
  ],
7
- "to": [
7
+ "destination": [
8
8
  48.8726397,
9
9
  2.3431657
10
10
  ],
11
11
  "itineraries": [
12
12
  {
13
- "from": [
13
+ "origin": [
14
14
  48.8726513,
15
15
  2.343449
16
16
  ],
17
- "to": [
17
+ "destination": [
18
18
  48.8726397,
19
19
  2.3431657
20
20
  ],
@@ -24,13 +24,13 @@
24
24
  "legs": [
25
25
  {
26
26
  "mode": "WALK",
27
- "from": {
27
+ "start": {
28
28
  "coords": [
29
29
  48.872645,
30
30
  2.343447
31
31
  ]
32
32
  },
33
- "to": {
33
+ "end": {
34
34
  "coords": [
35
35
  48.872638,
36
36
  2.343135