From: Peter Date: Sat, 6 Dec 2014 17:09:18 +0000 (+0100) Subject: Using HTTPS for GraphHopper X-Git-Tag: live~4261^2~12^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/60dfcbda9a0b589779f1f088ab562d551048e2e3?ds=sidebyside 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 --- 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"