X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0cb475cc1ad12c82ff0a36f7b9629c2288737a4f..904b5129981657c2d0228a27d8bdfc167b42ac27:/app/assets/javascripts/index/directions_engines/graphhopper.js
diff --git a/app/assets/javascripts/index/directions_engines/graphhopper.js b/app/assets/javascripts/index/directions_engines/graphhopper.js
index 11d70efc5..8d01bcd16 100644
--- a/app/assets/javascripts/index/directions_engines/graphhopper.js
+++ b/app/assets/javascripts/index/directions_engines/graphhopper.js
@@ -13,13 +13,13 @@ function GraphHopperEngine(id, vehicleParam) {
return {
id: id,
- creditline: 'Graphhopper',
+ creditline: 'Graphhopper',
draggable: false,
getRoute: function (points, callback) {
// documentation
// https://github.com/graphhopper/graphhopper/blob/master/docs/web/api-doc.md
- var url = "http://graphhopper.com/api/1/route?"
+ var url = "https://graphhopper.com/api/1/route?"
+ vehicleParam
+ "&locale=" + I18n.currentLocale()
+ "&key=LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn"