]> 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 88a9c15c1215b00ae19ba6a7373eb88dff1efd7c..03edb0633996fc17eef933e68c86093b536c26a2 100644 (file)
@@ -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,