X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9cf698322ce70e2fdb718be6624b0ac4e8eaf285..efd50cd529990069dc1ca95f66ec6f61471fe29d:/app/assets/javascripts/index/directions/graphhopper.js diff --git a/app/assets/javascripts/index/directions/graphhopper.js b/app/assets/javascripts/index/directions/graphhopper.js index f05f1ab3d..ce568409d 100644 --- a/app/assets/javascripts/index/directions/graphhopper.js +++ b/app/assets/javascripts/index/directions/graphhopper.js @@ -27,13 +27,12 @@ function GraphHopperEngine(id, vehicleType) { locale: I18n.currentLocale(), key: "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn", "ch.disable": vehicleType === "car", - type: "jsonp", elevation: false, instructions: true, point: points.map(function (p) { return p.lat + "," + p.lng; }) }, traditional: true, - dataType: "jsonp", + dataType: "json", success: function (data) { if (!data.paths || data.paths.length === 0) return callback(true);