Skip to content
Permalink
Browse files
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.
  • Loading branch information
tomhughes committed Mar 15, 2016
1 parent 16f5a5a commit 38180c5
Showing 1 changed file with 1 addition and 2 deletions.
@@ -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"
}
})
},

2 comments on commit 38180c5

@kevinkreiser
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

many many apologies about this breaking change, a massive oversight on our part 😦

@tomhughes
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem - it took us about a week to notice I think!

Please sign in to comment.