X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1add511c52e21492d3dd08b5a86e1f04e73791eb..6e9a76e64def7f6d64cac37ea2db666327c47747:/app/assets/javascripts/index/directions/graphhopper.js?ds=sidebyside diff --git a/app/assets/javascripts/index/directions/graphhopper.js b/app/assets/javascripts/index/directions/graphhopper.js index 592be075c..356de3477 100644 --- a/app/assets/javascripts/index/directions/graphhopper.js +++ b/app/assets/javascripts/index/directions/graphhopper.js @@ -19,7 +19,7 @@ function GraphHopperEngine(id, vehicleParam) { getRoute: function (points, callback) { // documentation // https://github.com/graphhopper/graphhopper/blob/master/docs/web/api-doc.md - var url = "https://graphhopper.com/api/1/route?" + var url = document.location.protocol + "//graphhopper.com/api/1/route?" + vehicleParam + "&locale=" + I18n.currentLocale() + "&key=LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn"