Don't pass the locale to the Mapzen routing engine
authorTom Hughes <tom@compton.nu>
Tue, 15 Mar 2016 10:03:18 +0000 (10:03 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 15 Mar 2016 10:03:18 +0000 (10:03 +0000)
It only supports en-US currently, and passing anything else now
makes it error instead of falling back to en-US.

app/assets/javascripts/index/directions/mapzen.js

index 348cb99c99c58367b7611f3b4b318ec5c02f5afe..1b775ba5106ffec7760c207e19261243ad719b11 100644 (file)
@@ -46,8 +46,7 @@ function MapzenEngine(id, costing) {
             locations: points.map(function (p) { return { lat: p.lat, lon: p.lng }; }),
             costing: costing,
             directions_options: {
-              units: "km",
-              language: I18n.currentLocale()
+              units: "km"
             }
           })
         },