X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cb3c4ec09b70e7eae62494af795187b32128fd0c..1cea6b363aab3f67caa3cd5ef0b0eea9bcea5c2b:/app/assets/javascripts/index/directions/graphhopper.js?ds=sidebyside 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);