return {
id: id,
- creditline: "<a href=\"https://www.graphhopper.com/\" target=\"_blank\">Graphhopper</a>",
+ creditline: "<a href=\"https://www.graphhopper.com/\" target=\"_blank\">GraphHopper</a>",
draggable: false,
getRoute: function (points, callback) {
return $.ajax({
url: OSM.GRAPHHOPPER_URL,
data: {
- "vehicle": vehicleType,
- "locale": I18n.currentLocale(),
- "key": "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
- "ch.disable": vehicleType === "car",
- "elevation": false,
- "instructions": true,
- "point": points.map(function (p) { return p.lat + "," + p.lng; })
+ vehicle: vehicleType,
+ locale: I18n.currentLocale(),
+ key: "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
+ elevation: false,
+ instructions: true,
+ turn_costs: vehicleType === "car",
+ point: points.map(function (p) { return p.lat + "," + p.lng; })
},
traditional: true,
dataType: "json",