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
This commit is contained in:
Peter 2014-12-06 18:09:18 +01:00
parent e94f251de5
commit 60dfcbda9a

View file

@ -13,13 +13,13 @@ function GraphHopperEngine(id, vehicleParam) {
return { return {
id: id, id: id,
creditline: '<a href="http://graphhopper.com/" target="_blank">Graphhopper</a>', creditline: '<a href="https://graphhopper.com/" target="_blank">Graphhopper</a>',
draggable: false, draggable: false,
getRoute: function (points, callback) { getRoute: function (points, callback) {
// documentation // documentation
// https://github.com/graphhopper/graphhopper/blob/master/docs/web/api-doc.md // 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 + vehicleParam
+ "&locale=" + I18n.currentLocale() + "&locale=" + I18n.currentLocale()
+ "&key=LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn" + "&key=LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn"