]> git.openstreetmap.org Git - rails.git/commitdiff
Scale total distance to metres for Mapzen
authorTom Hughes <tom@compton.nu>
Wed, 30 Sep 2015 16:22:27 +0000 (17:22 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 30 Sep 2015 16:22:27 +0000 (17:22 +0100)
app/assets/javascripts/index/directions/mapzen.js

index 3c2aaff8ce18f14fec04e5a0b94cdd101e4b46c4..915e665f5d5e6acfbbfcd4960bf71fa235db16c7 100644 (file)
@@ -87,7 +87,7 @@ function MapzenEngine(id, costing) {
             callback(false, {
               line: line,
               steps: steps,
-              distance: distance,
+              distance: distance * 1000,
               time: time
             });
           } else {