]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/graphhopper.js
Merge branch 'pull/5811'
[rails.git] / app / assets / javascripts / index / directions / graphhopper.js
index 430801a3b669aca3954abe6f20ab0fab553ce094..6a1043fbf366797591f265c206fff86c775ba2d3 100644 (file)
@@ -13,9 +13,9 @@
       "6": "roundabout",
       "-7": "fork-left",
       "7": "fork-right",
       "6": "roundabout",
       "-7": "fork-left",
       "7": "fork-right",
-      "-98": "u-turn", // unknown direction u-turn
-      "-8": "u-turn", // left u-turn
-      "8": "u-turn" // right u-turn
+      "-98": "u-turn-left", // unknown direction u-turn
+      "-8": "u-turn-left", // left u-turn
+      "8": "u-turn-right" // right u-turn
     };
 
     function _processDirections(path) {
     };
 
     function _processDirections(path) {
@@ -57,7 +57,7 @@
         // https://graphhopper.com/api/1/docs/routing/
         const query = new URLSearchParams({
           vehicle: vehicleType,
         // https://graphhopper.com/api/1/docs/routing/
         const query = new URLSearchParams({
           vehicle: vehicleType,
-          locale: I18n.currentLocale(),
+          locale: OSM.i18n.currentLocale(),
           key: "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
           elevation: false,
           instructions: true,
           key: "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
           elevation: false,
           instructions: true,