@wemap/routers 12.0.0-alpha.8 → 12.0.0-alpha.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/assets/rr-wemap-multi-remote-indoor-indoor.json +16 -16
- package/assets/rr-wemap-multi-remote-indoor-outdoor-indoor.json +18 -35
- package/assets/rr-wemap-multi-remote-indoor-outdoor.json +16 -16
- package/assets/rr-wemap-multi-remote-outdoor-indoor.json +16 -16
- package/assets/rr-wemap-multi-remote-outdoor-outdoor.json +16 -16
- package/dist/index.js +231 -377
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +231 -377
- package/dist/index.mjs.map +1 -1
- package/index.ts +2 -2
- package/package.json +4 -4
- package/src/ItineraryInfoManager.spec.ts +2 -4
- package/src/RoutingError.ts +56 -0
- package/src/StatusCode.ts +11 -0
- package/src/model/Itinerary.ts +7 -10
- package/src/remote/RemoteRouter.ts +2 -2
- package/src/remote/RemoteRouterManager.ts +9 -25
- package/src/remote/RemoteRouterUtils.ts +2 -7
- package/src/remote/cityway/CitywayRemoteRouter.spec.ts +30 -35
- package/src/remote/cityway/CitywayRemoteRouter.ts +12 -26
- package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.spec.ts +9 -10
- package/src/remote/deutsche-bahn/DeutscheBahnRemoteRouter.ts +7 -12
- package/src/remote/idfm/IdfmRemoteRouter.spec.ts +6 -9
- package/src/remote/idfm/IdfmRemoteRouter.ts +18 -29
- package/src/remote/osrm/OsrmRemoteRouter.spec.ts +29 -398
- package/src/remote/osrm/OsrmRemoteRouter.ts +22 -40
- package/src/remote/otp/OtpRemoteRouter.spec.ts +10 -15
- package/src/remote/otp/OtpRemoteRouter.ts +11 -20
- package/src/remote/wemap-multi/WemapMultiRemoteRouter.spec.ts +17 -27
- package/src/remote/wemap-multi/WemapMultiRemoteRouter.ts +9 -5
- package/src/wemap-multi/CustomNetworkMap.ts +2 -6
- package/src/wemap-multi/WemapMultiRouter.spec.ts +10 -10
- package/src/wemap-multi/WemapMultiRouter.ts +107 -174
- package/src/model/RouterResponse.spec.ts +0 -126
- package/src/model/RouterResponse.ts +0 -99
- package/src/remote/RemoteRouterServerUnreachable.ts +0 -6
- package/src/remote/TransitModeCorrespondanceNotFound.ts +0 -6
- package/src/remote/TravelModeCorrespondanceNotFound.ts +0 -6
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
"wemap-meta",
|
|
4
4
|
"wemap"
|
|
5
5
|
],
|
|
6
|
-
"origin":
|
|
7
|
-
48.8725992,
|
|
8
|
-
2.343431
|
|
9
|
-
|
|
10
|
-
"destination":
|
|
11
|
-
48.8725694,
|
|
12
|
-
2.3433
|
|
13
|
-
|
|
6
|
+
"origin": {
|
|
7
|
+
"lat": 48.8725992,
|
|
8
|
+
"lng": 2.343431
|
|
9
|
+
},
|
|
10
|
+
"destination": {
|
|
11
|
+
"lat": 48.8725694,
|
|
12
|
+
"lng": 2.3433
|
|
13
|
+
},
|
|
14
14
|
"itineraries": [
|
|
15
15
|
{
|
|
16
|
-
"origin":
|
|
17
|
-
48.8725992,
|
|
18
|
-
2.343431
|
|
19
|
-
|
|
20
|
-
"destination":
|
|
21
|
-
48.8725694,
|
|
22
|
-
2.3433
|
|
23
|
-
|
|
16
|
+
"origin": {
|
|
17
|
+
"lat": 48.8725992,
|
|
18
|
+
"lng": 2.343431
|
|
19
|
+
},
|
|
20
|
+
"destination": {
|
|
21
|
+
"lat": 48.8725694,
|
|
22
|
+
"lng": 2.3433
|
|
23
|
+
},
|
|
24
24
|
"distance": 13.06248469300833,
|
|
25
25
|
"duration": 9.404988978965996,
|
|
26
26
|
"mode": "WALK",
|
|
@@ -4,28 +4,26 @@
|
|
|
4
4
|
"osrm",
|
|
5
5
|
"wemap"
|
|
6
6
|
],
|
|
7
|
-
"origin":
|
|
8
|
-
48.8725992,
|
|
9
|
-
2.343431
|
|
10
|
-
|
|
11
|
-
"destination":
|
|
12
|
-
48.8772962,
|
|
13
|
-
2.3584458,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
],
|
|
7
|
+
"origin": {
|
|
8
|
+
"lat": 48.8725992,
|
|
9
|
+
"lng": 2.343431
|
|
10
|
+
},
|
|
11
|
+
"destination": {
|
|
12
|
+
"lat": 48.8772962,
|
|
13
|
+
"lng": 2.3584458,
|
|
14
|
+
"level": 0
|
|
15
|
+
},
|
|
17
16
|
"itineraries": [
|
|
18
17
|
{
|
|
19
|
-
"origin":
|
|
20
|
-
48.8725992,
|
|
21
|
-
2.343431
|
|
22
|
-
|
|
23
|
-
"destination":
|
|
24
|
-
48.8772962,
|
|
25
|
-
2.3584458,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
],
|
|
18
|
+
"origin": {
|
|
19
|
+
"lat": 48.8725992,
|
|
20
|
+
"lng": 2.343431
|
|
21
|
+
},
|
|
22
|
+
"destination": {
|
|
23
|
+
"lat": 48.8772962,
|
|
24
|
+
"lng": 2.3584458,
|
|
25
|
+
"level": 0
|
|
26
|
+
},
|
|
29
27
|
"distance": 1623.567209158486,
|
|
30
28
|
"duration": 1188.9963905941102,
|
|
31
29
|
"mode": "WALK",
|
|
@@ -555,7 +553,6 @@
|
|
|
555
553
|
"coords": [
|
|
556
554
|
48.8774156,
|
|
557
555
|
2.3581551,
|
|
558
|
-
null,
|
|
559
556
|
0
|
|
560
557
|
]
|
|
561
558
|
},
|
|
@@ -563,7 +560,6 @@
|
|
|
563
560
|
"coords": [
|
|
564
561
|
48.8772962,
|
|
565
562
|
2.3584458,
|
|
566
|
-
null,
|
|
567
563
|
0
|
|
568
564
|
]
|
|
569
565
|
},
|
|
@@ -573,61 +569,51 @@
|
|
|
573
569
|
[
|
|
574
570
|
48.8774156,
|
|
575
571
|
2.3581551,
|
|
576
|
-
null,
|
|
577
572
|
0
|
|
578
573
|
],
|
|
579
574
|
[
|
|
580
575
|
48.8774031,
|
|
581
576
|
2.3582059,
|
|
582
|
-
null,
|
|
583
577
|
0
|
|
584
578
|
],
|
|
585
579
|
[
|
|
586
580
|
48.87739408877,
|
|
587
581
|
2.3582397815,
|
|
588
|
-
null,
|
|
589
582
|
0
|
|
590
583
|
],
|
|
591
584
|
[
|
|
592
585
|
48.87738003272,
|
|
593
586
|
2.35829263106,
|
|
594
|
-
null,
|
|
595
587
|
0
|
|
596
588
|
],
|
|
597
589
|
[
|
|
598
590
|
48.87737740687,
|
|
599
591
|
2.35830250403,
|
|
600
|
-
null,
|
|
601
592
|
0
|
|
602
593
|
],
|
|
603
594
|
[
|
|
604
595
|
48.87736050007,
|
|
605
596
|
2.35836607217,
|
|
606
|
-
null,
|
|
607
597
|
0
|
|
608
598
|
],
|
|
609
599
|
[
|
|
610
600
|
48.8773552,
|
|
611
601
|
2.358386,
|
|
612
|
-
null,
|
|
613
602
|
0
|
|
614
603
|
],
|
|
615
604
|
[
|
|
616
605
|
48.87734966973,
|
|
617
606
|
2.35840668389,
|
|
618
|
-
null,
|
|
619
607
|
0
|
|
620
608
|
],
|
|
621
609
|
[
|
|
622
610
|
48.87732716148,
|
|
623
611
|
2.35849104813,
|
|
624
|
-
null,
|
|
625
612
|
0
|
|
626
613
|
],
|
|
627
614
|
[
|
|
628
615
|
48.87729021362492,
|
|
629
616
|
2.3584691138693743,
|
|
630
|
-
null,
|
|
631
617
|
0
|
|
632
618
|
]
|
|
633
619
|
],
|
|
@@ -637,7 +623,6 @@
|
|
|
637
623
|
"coords": [
|
|
638
624
|
48.8774156,
|
|
639
625
|
2.3581551,
|
|
640
|
-
null,
|
|
641
626
|
0
|
|
642
627
|
],
|
|
643
628
|
"angle": 1.2127782103969411,
|
|
@@ -652,7 +637,6 @@
|
|
|
652
637
|
"coords": [
|
|
653
638
|
48.87732716148,
|
|
654
639
|
2.35849104813,
|
|
655
|
-
null,
|
|
656
640
|
0
|
|
657
641
|
],
|
|
658
642
|
"angle": 1.5839505274258527,
|
|
@@ -667,7 +651,6 @@
|
|
|
667
651
|
"coords": [
|
|
668
652
|
48.87729021362492,
|
|
669
653
|
2.3584691138693743,
|
|
670
|
-
null,
|
|
671
654
|
0
|
|
672
655
|
],
|
|
673
656
|
"angle": 1.570800373779623,
|
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
"osrm",
|
|
5
5
|
"wemap"
|
|
6
6
|
],
|
|
7
|
-
"origin":
|
|
8
|
-
48.8725992,
|
|
9
|
-
2.343431
|
|
10
|
-
|
|
11
|
-
"destination":
|
|
12
|
-
48.8726513,
|
|
13
|
-
2.343449
|
|
14
|
-
|
|
7
|
+
"origin": {
|
|
8
|
+
"lat": 48.8725992,
|
|
9
|
+
"lng": 2.343431
|
|
10
|
+
},
|
|
11
|
+
"destination": {
|
|
12
|
+
"lat": 48.8726513,
|
|
13
|
+
"lng": 2.343449
|
|
14
|
+
},
|
|
15
15
|
"itineraries": [
|
|
16
16
|
{
|
|
17
|
-
"origin":
|
|
18
|
-
48.8725992,
|
|
19
|
-
2.343431
|
|
20
|
-
|
|
21
|
-
"destination":
|
|
22
|
-
48.8726513,
|
|
23
|
-
2.343449
|
|
24
|
-
|
|
17
|
+
"origin": {
|
|
18
|
+
"lat": 48.8725992,
|
|
19
|
+
"lng": 2.343431
|
|
20
|
+
},
|
|
21
|
+
"destination": {
|
|
22
|
+
"lat": 48.8726513,
|
|
23
|
+
"lng": 2.343449
|
|
24
|
+
},
|
|
25
25
|
"distance": 24.658068219028713,
|
|
26
26
|
"duration": 17.641809117700674,
|
|
27
27
|
"mode": "WALK",
|
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
"osrm",
|
|
5
5
|
"wemap"
|
|
6
6
|
],
|
|
7
|
-
"origin":
|
|
8
|
-
48.8726085,
|
|
9
|
-
2.3434289
|
|
10
|
-
|
|
11
|
-
"destination":
|
|
12
|
-
48.8725694,
|
|
13
|
-
2.3433
|
|
14
|
-
|
|
7
|
+
"origin": {
|
|
8
|
+
"lat": 48.8726085,
|
|
9
|
+
"lng": 2.3434289
|
|
10
|
+
},
|
|
11
|
+
"destination": {
|
|
12
|
+
"lat": 48.8725694,
|
|
13
|
+
"lng": 2.3433
|
|
14
|
+
},
|
|
15
15
|
"itineraries": [
|
|
16
16
|
{
|
|
17
|
-
"origin":
|
|
18
|
-
48.8726085,
|
|
19
|
-
2.3434289
|
|
20
|
-
|
|
21
|
-
"destination":
|
|
22
|
-
48.8725694,
|
|
23
|
-
2.3433
|
|
24
|
-
|
|
17
|
+
"origin": {
|
|
18
|
+
"lat": 48.8726085,
|
|
19
|
+
"lng": 2.3434289
|
|
20
|
+
},
|
|
21
|
+
"destination": {
|
|
22
|
+
"lat": 48.8725694,
|
|
23
|
+
"lng": 2.3433
|
|
24
|
+
},
|
|
25
25
|
"distance": 18.278520725857963,
|
|
26
26
|
"duration": 13.108534922617736,
|
|
27
27
|
"mode": "WALK",
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"routerName": "osrm",
|
|
3
|
-
"origin":
|
|
4
|
-
48.8726513,
|
|
5
|
-
2.343449
|
|
6
|
-
|
|
7
|
-
"destination":
|
|
8
|
-
48.8726397,
|
|
9
|
-
2.3431657
|
|
10
|
-
|
|
3
|
+
"origin": {
|
|
4
|
+
"lat": 48.8726513,
|
|
5
|
+
"lng": 2.343449
|
|
6
|
+
},
|
|
7
|
+
"destination": {
|
|
8
|
+
"lat": 48.8726397,
|
|
9
|
+
"lng": 2.3431657
|
|
10
|
+
},
|
|
11
11
|
"itineraries": [
|
|
12
12
|
{
|
|
13
|
-
"origin":
|
|
14
|
-
48.8726513,
|
|
15
|
-
2.343449
|
|
16
|
-
|
|
17
|
-
"destination":
|
|
18
|
-
48.8726397,
|
|
19
|
-
2.3431657
|
|
20
|
-
|
|
13
|
+
"origin": {
|
|
14
|
+
"lat": 48.8726513,
|
|
15
|
+
"lng": 2.343449
|
|
16
|
+
},
|
|
17
|
+
"destination": {
|
|
18
|
+
"lat": 48.8726397,
|
|
19
|
+
"lng": 2.3431657
|
|
20
|
+
},
|
|
21
21
|
"distance": 29.8,
|
|
22
22
|
"duration": 23.5,
|
|
23
23
|
"mode": "WALK",
|