X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ae4487921350e141efed42fdf7cd3fd70d72bc97..eb7678145a87c1b9e3cd7ff2d3b5dc08132e4b51:/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..83f266acc 100644
--- a/app/assets/javascripts/index/directions/graphhopper.js
+++ b/app/assets/javascripts/index/directions/graphhopper.js
@@ -14,7 +14,7 @@ function GraphHopperEngine(id, vehicleType) {
return {
id: id,
- creditline: 'Graphhopper',
+ creditline: "Graphhopper",
draggable: false,
getRoute: function (points, callback) {
@@ -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);