From: Richard Fairhurst Date: Mon, 2 Feb 2015 14:21:08 +0000 (+0000) Subject: Merge pull request #34 from tomhughes/routing X-Git-Tag: live~4824^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/4179fbbbeb3fa063e912e09d3ebfb4d011d770c2?hp=6b9e70573bd21631f0e320c3aadecc7e0be70aa0 Merge pull request #34 from tomhughes/routing Extend https support to all three routing engines --- 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"