-
Notifications
You must be signed in to change notification settings - Fork 0
/
leaflet-routing-machine.js
5299 lines (4892 loc) · 179 KB
/
leaflet-routing-machine.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
function corslite(url, callback, cors) {
var sent = false;
if (typeof window.XMLHttpRequest === 'undefined') {
return callback(Error('Browser not supported'));
}
if (typeof cors === 'undefined') {
var m = url.match(/^\s*https?:\/\/[^\/]*/);
cors = m && (m[0] !== location.protocol + '//' + location.hostname +
(location.port ? ':' + location.port : ''));
}
var x = new window.XMLHttpRequest();
function isSuccessful(status) {
return status >= 200 && status < 300 || status === 304;
}
if (cors && !('withCredentials' in x)) {
// IE8-9
x = new window.XDomainRequest();
// Ensure callback is never called synchronously, i.e., before
// x.send() returns (this has been observed in the wild).
// See https://github.com/mapbox/mapbox.js/issues/472
var original = callback;
callback = function() {
if (sent) {
original.apply(this, arguments);
} else {
var that = this, args = arguments;
setTimeout(function() {
original.apply(that, args);
}, 0);
}
}
}
function loaded() {
if (
// XDomainRequest
x.status === undefined ||
// modern browsers
isSuccessful(x.status)) callback.call(x, null, x);
else callback.call(x, x, null);
}
// Both `onreadystatechange` and `onload` can fire. `onreadystatechange`
// has [been supported for longer](http://stackoverflow.com/a/9181508/229001).
if ('onload' in x) {
x.onload = loaded;
} else {
x.onreadystatechange = function readystate() {
if (x.readyState === 4) {
loaded();
}
};
}
// Call the callback with the XMLHttpRequest object as an error and prevent
// it from ever being called again by reassigning it to `noop`
x.onerror = function error(evt) {
// XDomainRequest provides no evt parameter
callback.call(this, evt || true, null);
callback = function() { };
};
// IE9 must have onprogress be set to a unique function.
x.onprogress = function() { };
x.ontimeout = function(evt) {
callback.call(this, evt, null);
callback = function() { };
};
x.onabort = function(evt) {
callback.call(this, evt, null);
callback = function() { };
};
// GET is the only supported HTTP Verb by XDomainRequest and is the
// only one supported here.
x.open('GET', url, true);
// Send the request. Sending data is not supported.
x.send(null);
sent = true;
return x;
}
if (typeof module !== 'undefined') module.exports = corslite;
},{}],2:[function(_dereq_,module,exports){
module.exports = function(version, language, options) {
// load instructions
var instructions = _dereq_('./instructions').get(language);
if (Object !== instructions.constructor) throw 'instructions must be object';
if (!instructions[version]) { throw 'invalid version ' + version; }
return {
capitalizeFirstLetter: function(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
},
ordinalize: function(number) {
// Transform numbers to their translated ordinalized value
return instructions[version].constants.ordinalize[number.toString()] || '';
},
directionFromDegree: function(degree) {
// Transform degrees to their translated compass direction
if (!degree && degree !== 0) {
// step had no bearing_after degree, ignoring
return '';
} else if (degree >= 0 && degree <= 20) {
return instructions[version].constants.direction.north;
} else if (degree > 20 && degree < 70) {
return instructions[version].constants.direction.northeast;
} else if (degree >= 70 && degree < 110) {
return instructions[version].constants.direction.east;
} else if (degree >= 110 && degree <= 160) {
return instructions[version].constants.direction.southeast;
} else if (degree > 160 && degree <= 200) {
return instructions[version].constants.direction.south;
} else if (degree > 200 && degree < 250) {
return instructions[version].constants.direction.southwest;
} else if (degree >= 250 && degree <= 290) {
return instructions[version].constants.direction.west;
} else if (degree > 290 && degree < 340) {
return instructions[version].constants.direction.northwest;
} else if (degree >= 340 && degree <= 360) {
return instructions[version].constants.direction.north;
} else {
throw new Error('Degree ' + degree + ' invalid');
}
},
laneConfig: function(step) {
// Reduce any lane combination down to a contracted lane diagram
if (!step.intersections || !step.intersections[0].lanes) throw new Error('No lanes object');
var config = [];
var currentLaneValidity = null;
step.intersections[0].lanes.forEach(function (lane) {
if (currentLaneValidity === null || currentLaneValidity !== lane.valid) {
if (lane.valid) {
config.push('o');
} else {
config.push('x');
}
currentLaneValidity = lane.valid;
}
});
return config.join('');
},
compile: function(step) {
if (!step.maneuver) throw new Error('No step maneuver provided');
var type = step.maneuver.type;
var modifier = step.maneuver.modifier;
var mode = step.mode;
if (!type) { throw new Error('Missing step maneuver type'); }
if (type !== 'depart' && type !== 'arrive' && !modifier) { throw new Error('Missing step maneuver modifier'); }
if (!instructions[version][type]) {
// Log for debugging
console.log('Encountered unknown instruction type: ' + type); // eslint-disable-line no-console
// OSRM specification assumes turn types can be added without
// major version changes. Unknown types are to be treated as
// type `turn` by clients
type = 'turn';
}
// Use special instructions if available, otherwise `defaultinstruction`
var instructionObject;
if (instructions[version].modes[mode]) {
instructionObject = instructions[version].modes[mode];
} else if (instructions[version][type][modifier]) {
instructionObject = instructions[version][type][modifier];
} else {
instructionObject = instructions[version][type].default;
}
// Special case handling
var laneInstruction;
switch (type) {
case 'use lane':
laneInstruction = instructions[version].constants.lanes[this.laneConfig(step)];
if (!laneInstruction) {
// If the lane combination is not found, default to continue straight
instructionObject = instructions[version]['use lane'].no_lanes;
}
break;
case 'rotary':
case 'roundabout':
if (step.rotary_name && step.maneuver.exit && instructionObject.name_exit) {
instructionObject = instructionObject.name_exit;
} else if (step.rotary_name && instructionObject.name) {
instructionObject = instructionObject.name;
} else if (step.maneuver.exit && instructionObject.exit) {
instructionObject = instructionObject.exit;
} else {
instructionObject = instructionObject.default;
}
break;
default:
// NOOP, since no special logic for that type
}
// Decide way_name with special handling for name and ref
var wayName;
var name = step.name || '';
var ref = (step.ref || '').split(';')[0];
// Remove hacks from Mapbox Directions mixing ref into name
if (name === step.ref) {
// if both are the same we assume that there used to be an empty name, with the ref being filled in for it
// we only need to retain the ref then
name = '';
}
name = name.replace(' (' + step.ref + ')', '');
if (name && ref && name !== ref) {
wayName = name + ' (' + ref + ')';
} else if (!name && ref) {
wayName = ref;
} else {
wayName = name;
}
// Decide which instruction string to use
// Destination takes precedence over name
var instruction;
if (step.destinations && instructionObject.destination) {
instruction = instructionObject.destination;
} else if (wayName && instructionObject.name) {
instruction = instructionObject.name;
} else {
instruction = instructionObject.default;
}
var tokenizedInstructionHook = ((options || {}).hooks || {}).tokenizedInstruction;
if (tokenizedInstructionHook) {
instruction = tokenizedInstructionHook(instruction);
}
// Replace tokens
// NOOP if they don't exist
var nthWaypoint = ''; // TODO, add correct waypoint counting
instruction = instruction
.replace('{way_name}', wayName)
.replace('{destination}', (step.destinations || '').split(',')[0])
.replace('{exit_number}', this.ordinalize(step.maneuver.exit || 1))
.replace('{rotary_name}', step.rotary_name)
.replace('{lane_instruction}', laneInstruction)
.replace('{modifier}', instructions[version].constants.modifier[modifier])
.replace('{direction}', this.directionFromDegree(step.maneuver.bearing_after))
.replace('{nth}', nthWaypoint)
.replace(/ {2}/g, ' '); // remove excess spaces
if (instructions.meta.capitalizeFirstLetter) {
instruction = this.capitalizeFirstLetter(instruction);
}
return instruction;
}
};
};
},{"./instructions":3}],3:[function(_dereq_,module,exports){
var instructionsDe = _dereq_('./instructions/de.json');
var instructionsEn = _dereq_('./instructions/en.json');
var instructionsFr = _dereq_('./instructions/fr.json');
var instructionsNl = _dereq_('./instructions/nl.json');
var instructionsZhHans = _dereq_('./instructions/zh-Hans.json');
module.exports = {
get: function(language) {
switch (language) {
case 'en':
return instructionsEn;
case 'de':
return instructionsDe;
case 'fr':
return instructionsFr;
case 'nl':
return instructionsNl;
case 'zh':
case 'zh-Hans':
return instructionsZhHans;
default:
throw 'invalid language ' + language;
}
}
};
},{"./instructions/de.json":4,"./instructions/en.json":5,"./instructions/fr.json":6,"./instructions/nl.json":7,"./instructions/zh-Hans.json":8}],4:[function(_dereq_,module,exports){
module.exports={
"meta": {
"capitalizeFirstLetter": true
},
"v5": {
"constants": {
"ordinalize": {
"1": "erste",
"2": "zweite",
"3": "dritte",
"4": "vierte",
"5": "fünfte",
"6": "sechste",
"7": "siebente",
"8": "achte",
"9": "neunte",
"10": "zehnte"
},
"direction": {
"north": "Norden",
"northeast": "Nordosten",
"east": "Osten",
"southeast": "Südosten",
"south": "Süden",
"southwest": "Südwesten",
"west": "Westen",
"northwest": "Nordwesten"
},
"modifier": {
"left": "links",
"right": "rechts",
"sharp left": "scharf links",
"sharp right": "scharf rechts",
"slight left": "leicht links",
"slight right": "leicht rechts",
"straight": "geradeaus",
"uturn": "180°-Wendung"
},
"lanes": {
"xo": "Rechts halten",
"ox": "Links halten",
"xox": "Mittlere Spur nutzen",
"oxo": "Rechts oder links halten"
}
},
"modes": {
"ferry": {
"default": "Fähre nehmen",
"name": "Fähre nehmen {way_name}",
"destination": "Fähre nehmen Richtung {destination}"
}
},
"arrive": {
"default": {
"default": "Sie haben Ihr {nth} Ziel erreicht"
},
"left": {
"default": "Sie haben Ihr {nth} Ziel erreicht, es befindet sich links von Ihnen"
},
"right": {
"default": "Sie haben Ihr {nth} Ziel erreicht, es befindet sich rechts von Ihnen"
},
"sharp left": {
"default": "Sie haben Ihr {nth} Ziel erreicht, es befindet sich links von Ihnen"
},
"sharp right": {
"default": "Sie haben Ihr {nth} Ziel erreicht, es befindet sich rechts von Ihnen"
},
"slight right": {
"default": "Sie haben Ihr {nth} Ziel erreicht, es befindet sich rechts von Ihnen"
},
"slight left": {
"default": "Sie haben Ihr {nth} Ziel erreicht, es befindet sich links von Ihnen"
},
"straight": {
"default": "Sie haben Ihr {nth} Ziel erreicht, es befindet sich direkt vor Ihnen"
}
},
"continue": {
"default": {
"default": "{modifier} weiterfahren",
"name": "{modifier} weiterfahren auf {way_name}",
"destination": "{modifier} weiterfahren Richtung {destination}"
},
"slight left": {
"default": "Leicht links weiter",
"name": "Leicht links weiter auf {way_name}",
"destination": "Leicht links weiter Richtung {destination}"
},
"slight right": {
"default": "Leicht rechts weiter",
"name": "Leicht rechts weiter auf {way_name}",
"destination": "Leicht rechts weiter Richtung {destination}"
},
"uturn": {
"default": "180°-Wendung",
"name": "180°-Wendung auf {way_name}",
"destination": "180°-Wendung Richtung {destination}"
}
},
"depart": {
"default": {
"default": "Fahren Sie Richtung {direction}",
"name": "Fahren Sie Richtung {direction} auf {way_name}"
}
},
"end of road": {
"default": {
"default": "{modifier} abbiegen",
"name": "{modifier} abbiegen auf {way_name}",
"destination": "{modifier} abbiegen Richtung {destination}"
},
"straight": {
"default": "Geradeaus weiterfahren",
"name": "Geradeaus weiterfahren auf {way_name}",
"destination": "Geradeaus weiterfahren Richtung {destination}"
},
"uturn": {
"default": "180°-Wendung am Ende der Straße",
"name": "180°-Wendung auf {way_name} am Ende der Straße",
"destination": "180°-Wendung Richtung {destination} am Ende der Straße"
}
},
"fork": {
"default": {
"default": "{modifier} halten an der Gabelung",
"name": "{modifier} halten an der Gabelung auf {way_name}",
"destination": "{modifier} halten an der Gabelung Richtung {destination}"
},
"slight left": {
"default": "Links halten an der Gabelung",
"name": "Links halten an der Gabelung auf {way_name}",
"destination": "Links halten an der Gabelung Richtung {destination}"
},
"slight right": {
"default": "Rechts halten an der Gabelung",
"name": "Rechts halten an der Gabelung auf {way_name}",
"destination": "Rechts halten an der Gabelung Richtung {destination}"
},
"sharp left": {
"default": "Scharf links abbiegen an der Gabelung",
"name": "Scharf links abbiegen an der Gabelung auf {way_name}",
"destination": "Scharf links abbiegen an der Gabelung Richtung {destination}"
},
"sharp right": {
"default": "Scharf rechts abbiegen an der Gabelung",
"name": "Scharf rechts abbiegen an der Gabelung auf {way_name}",
"destination": "Scharf rechts abbiegen an der Gabelung Richtung {destination}"
},
"uturn": {
"default": "180°-Wendung",
"name": "180°-Wendung auf {way_name}",
"destination": "180°-Wendung Richtung {destination}"
}
},
"merge": {
"default": {
"default": "{modifier} auffahren",
"name": "{modifier} auffahren auf {way_name}",
"destination": "{modifier} auffahren Richtung {destination}"
},
"slight left": {
"default": "Leicht links auffahren",
"name": "Leicht links auffahren auf {way_name}",
"destination": "Leicht links auffahren Richtung {destination}"
},
"slight right": {
"default": "Leicht rechts auffahren",
"name": "Leicht rechts auffahren auf {way_name}",
"destination": "Leicht rechts auffahren Richtung {destination}"
},
"sharp left": {
"default": "Scharf links auffahren",
"name": "Scharf links auffahren auf {way_name}",
"destination": "Scharf links auffahren Richtung {destination}"
},
"sharp right": {
"default": "Scharf rechts auffahren",
"name": "Scharf rechts auffahren auf {way_name}",
"destination": "Scharf rechts auffahren Richtung {destination}"
},
"uturn": {
"default": "180°-Wendung",
"name": "180°-Wendung auf {way_name}",
"destination": "180°-Wendung Richtung {destination}"
}
},
"new name": {
"default": {
"default": "{modifier} weiterfahren",
"name": "{modifier} weiterfahren auf {way_name}",
"destination": "{modifier} weiterfahren Richtung {destination}"
},
"sharp left": {
"default": "Scharf links",
"name": "Scharf links auf {way_name}",
"destination": "Scharf links Richtung {destination}"
},
"sharp right": {
"default": "Scharf rechts",
"name": "Scharf rechts auf {way_name}",
"destination": "Scharf rechts Richtung {destination}"
},
"slight left": {
"default": "Leicht links weiter",
"name": "Leicht links weiter auf {way_name}",
"destination": "Leicht links weiter Richtung {destination}"
},
"slight right": {
"default": "Leicht rechts weiter",
"name": "Leicht rechts weiter auf {way_name}",
"destination": "Leicht rechts weiter Richtung {destination}"
},
"uturn": {
"default": "180°-Wendung",
"name": "180°-Wendung auf {way_name}",
"destination": "180°-Wendung Richtung {destination}"
}
},
"notification": {
"default": {
"default": "{modifier} weiterfahren",
"name": "{modifier} weiterfahren auf {way_name}",
"destination" : "{modifier} weiterfahren Richtung {destination}"
},
"uturn": {
"default": "180°-Wendung",
"name": "180°-Wendung auf {way_name}",
"destination": "180°-Wendung Richtung {destination}"
}
},
"off ramp": {
"default": {
"default": "Rampe nehmen",
"name": "Rampe nehmen auf {way_name}",
"destination": "Rampe nehmen Richtung {destination}"
},
"left": {
"default": "Rampe auf der linken Seite nehmen",
"name": "Rampe auf der linken Seite nehmen auf {way_name}",
"destination": "Rampe auf der linken Seite nehmen Richtung {destination}"
},
"right": {
"default": "Rampe auf der rechten Seite nehmen",
"name": "Rampe auf der rechten Seite nehmen auf {way_name}",
"destination": "Rampe auf der rechten Seite nehmen Richtung {destination}"
},
"sharp left": {
"default": "Rampe auf der linken Seite nehmen",
"name": "Rampe auf der linken Seite nehmen auf {way_name}",
"destination": "Rampe auf der linken Seite nehmen Richtung {destination}"
},
"sharp right": {
"default": "Rampe auf der rechten Seite nehmen",
"name": "Rampe auf der rechten Seite nehmen auf {way_name}",
"destination": "Rampe auf der rechten Seite nehmen Richtung {destination}"
},
"slight left": {
"default": "Rampe auf der linken Seite nehmen",
"name": "Rampe auf der linken Seite nehmen auf {way_name}",
"destination": "Rampe auf der linken Seite nehmen Richtung {destination}"
},
"slight right": {
"default": "Rampe auf der rechten Seite nehmen",
"name": "Rampe auf der rechten Seite nehmen auf {way_name}",
"destination": "Rampe auf der rechten Seite nehmen Richtung {destination}"
}
},
"on ramp": {
"default": {
"default": "Rampe nehmen",
"name": "Rampe nehmen auf {way_name}",
"destination": "Rampe nehmen Richtung {destination}"
},
"left": {
"default": "Rampe auf der linken Seite nehmen",
"name": "Rampe auf der linken Seite nehmen auf {way_name}",
"destination": "Rampe auf der linken Seite nehmen Richtung {destination}"
},
"right": {
"default": "Rampe auf der rechten Seite nehmen",
"name": "Rampe auf der rechten Seite nehmen auf {way_name}",
"destination": "Rampe auf der rechten Seite nehmen Richtung {destination}"
},
"sharp left": {
"default": "Rampe auf der linken Seite nehmen",
"name": "Rampe auf der linken Seite nehmen auf {way_name}",
"destination": "Rampe auf der linken Seite nehmen Richtung {destination}"
},
"sharp right": {
"default": "Rampe auf der rechten Seite nehmen",
"name": "Rampe auf der rechten Seite nehmen auf {way_name}",
"destination": "Rampe auf der rechten Seite nehmen Richtung {destination}"
},
"slight left": {
"default": "Rampe auf der linken Seite nehmen",
"name": "Rampe auf der linken Seite nehmen auf {way_name}",
"destination": "Rampe auf der linken Seite nehmen Richtung {destination}"
},
"slight right": {
"default": "Rampe auf der rechten Seite nehmen",
"name": "Rampe auf der rechten Seite nehmen auf {way_name}",
"destination": "Rampe auf der rechten Seite nehmen Richtung {destination}"
}
},
"rotary": {
"default": {
"default": {
"default": "In den Kreisverkehr fahren",
"name": "In den Kreisverkehr fahren und auf {way_name} verlassen",
"destination": "In den Kreisverkehr fahren und Richtung {destination} verlassen"
},
"name": {
"default": "In {rotary_name} fahren",
"name": "In {rotary_name} fahren und auf {way_name} verlassen",
"destination": "In {rotary_name} fahren und Richtung {destination} verlassen"
},
"exit": {
"default": "In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen",
"name": "In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen auf {way_name}",
"destination": "In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen Richtung {destination}"
},
"name_exit": {
"default": "In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen",
"name": "In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen auf {way_name}",
"destination": "In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen Richtung {destination}"
}
}
},
"roundabout": {
"default": {
"exit": {
"default": "In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen",
"name": "In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen auf {way_name}",
"destination": "In den Kreisverkehr fahren und {exit_number} Ausfahrt nehmen Richtung {destination}"
},
"default": {
"default": "In den Kreisverkehr fahren",
"name": "In den Kreisverkehr fahren und auf {way_name} verlassen",
"destination": "In den Kreisverkehr fahren und Richtung {destination} verlassen"
}
}
},
"roundabout turn": {
"default": {
"default": "Am Kreisverkehr {modifier}",
"name": "Am Kreisverkehr {modifier} auf {way_name}",
"destination": "Am Kreisverkehr {modifier} Richtung {destination}"
},
"left": {
"default": "Am Kreisverkehr links",
"name": "Am Kreisverkehr links auf {way_name}",
"destination": "Am Kreisverkehr links Richtung {destination}"
},
"right": {
"default": "Am Kreisverkehr rechts",
"name": "Am Kreisverkehr rechts auf {way_name}",
"destination": "Am Kreisverkehr rechts Richtung {destination}"
},
"straight": {
"default": "Am Kreisverkehr geradeaus weiterfahren",
"name": "Am Kreisverkehr geradeaus weiterfahren auf {way_name}",
"destination": "Am Kreisverkehr geradeaus weiterfahren Richtung {destination}"
}
},
"turn": {
"default": {
"default": "{modifier} abbiegen",
"name": "{modifier} abbiegen auf {way_name}",
"destination": "{modifier} abbiegen Richtung {destination}"
},
"left": {
"default": "Links abbiegen",
"name": "Links abbiegen auf {way_name}",
"destination": "Links abbiegen Richtung {destination}"
},
"right": {
"default": "Rechts abbiegen",
"name": "Rechts abbiegen auf {way_name}",
"destination": "Rechts abbiegen Richtung {destination}"
},
"straight": {
"default": "Geradeaus weiterfahren",
"name": "Geradeaus weiterfahren auf {way_name}",
"destination": "Geradeaus weiterfahren Richtung {destination}"
}
},
"use lane": {
"no_lanes": {
"default": "Geradeaus weiterfahren"
},
"default": {
"default": "{lane_instruction}"
}
}
}
}
},{}],5:[function(_dereq_,module,exports){
module.exports={
"meta": {
"capitalizeFirstLetter": true
},
"v5": {
"constants": {
"ordinalize": {
"1": "1st",
"2": "2nd",
"3": "3rd",
"4": "4th",
"5": "5th",
"6": "6th",
"7": "7th",
"8": "8th",
"9": "9th",
"10": "10th"
},
"direction": {
"north": "north",
"northeast": "northeast",
"east": "east",
"southeast": "southeast",
"south": "south",
"southwest": "southwest",
"west": "west",
"northwest": "northwest"
},
"modifier": {
"left": "left",
"right": "right",
"sharp left": "sharp left",
"sharp right": "sharp right",
"slight left": "slight left",
"slight right": "slight right",
"straight": "straight",
"uturn": "U-turn"
},
"lanes": {
"xo": "Keep right",
"ox": "Keep left",
"xox": "Keep in the middle",
"oxo": "Keep left or right"
}
},
"modes": {
"ferry": {
"default": "Take the ferry",
"name": "Take the ferry {way_name}",
"destination": "Take the ferry towards {destination}"
}
},
"arrive": {
"default": {
"default": "You have arrived at your {nth} destination"
},
"left": {
"default": "You have arrived at your {nth} destination, on the left"
},
"right": {
"default": "You have arrived at your {nth} destination, on the right"
},
"sharp left": {
"default": "You have arrived at your {nth} destination, on the left"
},
"sharp right": {
"default": "You have arrived at your {nth} destination, on the right"
},
"slight right": {
"default": "You have arrived at your {nth} destination, on the right"
},
"slight left": {
"default": "You have arrived at your {nth} destination, on the left"
},
"straight": {
"default": "You have arrived at your {nth} destination, straight ahead"
}
},
"continue": {
"default": {
"default": "Continue {modifier}",
"name": "Continue {modifier} onto {way_name}",
"destination": "Continue {modifier} towards {destination}"
},
"slight left": {
"default": "Continue slightly left",
"name": "Continue slightly left onto {way_name}",
"destination": "Continue slightly left towards {destination}"
},
"slight right": {
"default": "Continue slightly right",
"name": "Continue slightly right onto {way_name}",
"destination": "Continue slightly right towards {destination}"
},
"uturn": {
"default": "Make a U-turn",
"name": "Make a U-turn onto {way_name}",
"destination": "Make a U-turn towards {destination}"
}
},
"depart": {
"default": {
"default": "Head {direction}",
"name": "Head {direction} on {way_name}"
}
},
"end of road": {
"default": {
"default": "Turn {modifier}",
"name": "Turn {modifier} onto {way_name}",
"destination": "Turn {modifier} towards {destination}"
},
"straight": {
"default": "Continue straight",
"name": "Continue straight onto {way_name}",
"destination": "Continue straight towards {destination}"
},
"uturn": {
"default": "Make a U-turn at the end of the road",
"name": "Make a U-turn onto {way_name} at the end of the road",
"destination": "Make a U-turn towards {destination} at the end of the road"
}
},
"fork": {
"default": {
"default": "Keep {modifier} at the fork",
"name": "Keep {modifier} at the fork onto {way_name}",
"destination": "Keep {modifier} at the fork towards {destination}"
},
"slight left": {
"default": "Keep left at the fork",
"name": "Keep left at the fork onto {way_name}",
"destination": "Keep left at the fork towards {destination}"
},
"slight right": {
"default": "Keep right at the fork",
"name": "Keep right at the fork onto {way_name}",
"destination": "Keep right at the fork towards {destination}"
},
"sharp left": {
"default": "Take a sharp left at the fork",
"name": "Take a sharp left at the fork onto {way_name}",
"destination": "Take a sharp left at the fork towards {destination}"
},
"sharp right": {
"default": "Take a sharp right at the fork",
"name": "Take a sharp right at the fork onto {way_name}",
"destination": "Take a sharp right at the fork towards {destination}"
},
"uturn": {
"default": "Make a U-turn",
"name": "Make a U-turn onto {way_name}",
"destination": "Make a U-turn towards {destination}"
}
},
"merge": {
"default": {
"default": "Merge {modifier}",
"name": "Merge {modifier} onto {way_name}",
"destination": "Merge {modifier} towards {destination}"
},
"slight left": {
"default": "Merge left",
"name": "Merge left onto {way_name}",
"destination": "Merge left towards {destination}"
},
"slight right": {
"default": "Merge right",
"name": "Merge right onto {way_name}",
"destination": "Merge right towards {destination}"
},
"sharp left": {
"default": "Merge left",
"name": "Merge left onto {way_name}",
"destination": "Merge left towards {destination}"
},
"sharp right": {
"default": "Merge right",
"name": "Merge right onto {way_name}",
"destination": "Merge right towards {destination}"
},
"uturn": {
"default": "Make a U-turn",
"name": "Make a U-turn onto {way_name}",
"destination": "Make a U-turn towards {destination}"
}
},
"new name": {
"default": {
"default": "Continue {modifier}",
"name": "Continue {modifier} onto {way_name}",
"destination": "Continue {modifier} towards {destination}"
},
"sharp left": {
"default": "Take a sharp left",
"name": "Take a sharp left onto {way_name}",
"destination": "Take a sharp left towards {destination}"
},
"sharp right": {
"default": "Take a sharp right",
"name": "Take a sharp right onto {way_name}",
"destination": "Take a sharp right towards {destination}"
},
"slight left": {
"default": "Continue slightly left",
"name": "Continue slightly left onto {way_name}",
"destination": "Continue slightly left towards {destination}"
},
"slight right": {
"default": "Continue slightly right",
"name": "Continue slightly right onto {way_name}",
"destination": "Continue slightly right towards {destination}"
},
"uturn": {
"default": "Make a U-turn",
"name": "Make a U-turn onto {way_name}",
"destination": "Make a U-turn towards {destination}"
}
},
"notification": {
"default": {
"default": "Continue {modifier}",
"name": "Continue {modifier} onto {way_name}",
"destination" : "Continue {modifier} towards {destination}"
},
"uturn": {
"default": "Make a U-turn",
"name": "Make a U-turn onto {way_name}",
"destination": "Make a U-turn towards {destination}"
}
},
"off ramp": {
"default": {
"default": "Take the ramp",
"name": "Take the ramp onto {way_name}",
"destination": "Take the ramp towards {destination}"
},
"left": {
"default": "Take the ramp on the left",
"name": "Take the ramp on the left onto {way_name}",
"destination": "Take the ramp on the left towards {destination}"
},
"right": {
"default": "Take the ramp on the right",
"name": "Take the ramp on the right onto {way_name}",
"destination": "Take the ramp on the right towards {destination}"
},
"sharp left": {
"default": "Take the ramp on the left",
"name": "Take the ramp on the left onto {way_name}",
"destination": "Take the ramp on the left towards {destination}"
},
"sharp right": {
"default": "Take the ramp on the right",
"name": "Take the ramp on the right onto {way_name}",
"destination": "Take the ramp on the right towards {destination}"
},
"slight left": {
"default": "Take the ramp on the left",
"name": "Take the ramp on the left onto {way_name}",
"destination": "Take the ramp on the left towards {destination}"
},
"slight right": {
"default": "Take the ramp on the right",
"name": "Take the ramp on the right onto {way_name}",
"destination": "Take the ramp on the right towards {destination}"
}
},
"on ramp": {
"default": {
"default": "Take the ramp",
"name": "Take the ramp onto {way_name}",
"destination": "Take the ramp towards {destination}"
},
"left": {
"default": "Take the ramp on the left",
"name": "Take the ramp on the left onto {way_name}",
"destination": "Take the ramp on the left towards {destination}"
},
"right": {
"default": "Take the ramp on the right",
"name": "Take the ramp on the right onto {way_name}",
"destination": "Take the ramp on the right towards {destination}"
},
"sharp left": {
"default": "Take the ramp on the left",
"name": "Take the ramp on the left onto {way_name}",
"destination": "Take the ramp on the left towards {destination}"
},
"sharp right": {
"default": "Take the ramp on the right",
"name": "Take the ramp on the right onto {way_name}",
"destination": "Take the ramp on the right towards {destination}"
},
"slight left": {
"default": "Take the ramp on the left",
"name": "Take the ramp on the left onto {way_name}",
"destination": "Take the ramp on the left towards {destination}"
},
"slight right": {