Fix eslint warnings

This commit is contained in:
Tom Hughes 2020-07-19 19:54:17 +01:00
parent 2898633e72
commit 7986576b0e

View file

@ -23,13 +23,13 @@ function GraphHopperEngine(id, vehicleType) {
return $.ajax({
url: OSM.GRAPHHOPPER_URL,
data: {
"vehicle": vehicleType,
"locale": I18n.currentLocale(),
"key": "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
"elevation": false,
"instructions": true,
"turn_costs": true,
"point": points.map(function (p) { return p.lat + "," + p.lng; })
vehicle: vehicleType,
locale: I18n.currentLocale(),
key: "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
elevation: false,
instructions: true,
turn_costs: true,
point: points.map(function (p) { return p.lat + "," + p.lng; })
},
traditional: true,
dataType: "json",