turn_costs=true only for car

I know there was a bit forth and back in #2695 and my last recommendation was to use turn_costs=true. This was not intended for bike and foot.
This commit is contained in:
Peter 2020-07-27 13:04:52 +02:00 committed by GitHub
parent 44c45b1fcd
commit 5444506976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ function GraphHopperEngine(id, vehicleType) {
key: "LijBPDQGfu7Iiq80w3HzwB4RUDJbMbhs6BU0dEnn",
elevation: false,
instructions: true,
turn_costs: true,
turn_costs: vehicleType === "car",
point: points.map(function (p) { return p.lat + "," + p.lng; })
},
traditional: true,