From: Tom Hughes Date: Tue, 15 Mar 2016 10:03:18 +0000 (+0000) Subject: Don't pass the locale to the Mapzen routing engine X-Git-Tag: live~3858 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/38180c56c9be9d99406c9088b60f5912c2648a04 Don't pass the locale to the Mapzen routing engine It only supports en-US currently, and passing anything else now makes it error instead of falling back to en-US. --- diff --git a/app/assets/javascripts/index/directions/mapzen.js b/app/assets/javascripts/index/directions/mapzen.js index 348cb99c9..1b775ba51 100644 --- a/app/assets/javascripts/index/directions/mapzen.js +++ b/app/assets/javascripts/index/directions/mapzen.js @@ -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" } }) },