From 60dfcbda9a0b589779f1f088ab562d551048e2e3 Mon Sep 17 00:00:00 2001 From: Peter Date: Sat, 6 Dec 2014 18:09:18 +0100 Subject: [PATCH] Using HTTPS for GraphHopper this avoids information leaking if used via https://openstreetmap.org and it should not be a problem when using via the HTTP variant --- .../javascripts/index/directions_engines/graphhopper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.43.2