]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/directions/graphhopper.js
Fix latLng from GraphHopper engine
[rails.git] / app / assets / javascripts / index / directions / graphhopper.js
index 9cf1dc1aacf58ba703d281e78401e35b651680d9..03edb0633996fc17eef933e68c86093b536c26a2 100644 (file)
@@ -7,8 +7,8 @@ function GraphHopperEngine(id, vehicleType) {
     1: 1, // slight right
     2: 2, // right
     3: 3, // sharp right
-    4: 8, // finish reached
-    5: 8, // via reached
+    4: 14, // finish reached
+    5: 14, // via reached
     6: 10 // roundabout
   };
 
@@ -50,7 +50,7 @@ function GraphHopperEngine(id, vehicleType) {
             var latLng = line[instr.interval[0]];
             var distInMeter = instr.distance;
             steps.push([
-              {lat: latLng.lat, lng: latLng.lng},
+              {lat: latLng[0], lng: latLng[1]},
               instrCode,
               instrText,
               distInMeter,