- getRoute: function(final, points) {
- var url = "http://graphhopper.com/routing/api/route?vehicle=bike&locale=en";
+ getRoute: function(isFinal, points) {
+ var url = "http://graphhopper.com/routing/api/route?vehicle=bike&locale=" + I18n.currentLocale();