Tuen on turn restriction support for graphhopper
No way of actually testing if this works, but it is based on https://docs.graphhopper.com/#operation/getRoute/parameters/point and https://www.graphhopper.com/blog/2020/07/08/turn-restriction-support-for-graphhoppers-directions-api/
This commit is contained in:
parent
9f993fe8c8
commit
85cb71702e
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ function GraphHopperEngine(id, vehicleType) {
|
||||||
"ch.disable": vehicleType === "car",
|
"ch.disable": vehicleType === "car",
|
||||||
"elevation": false,
|
"elevation": false,
|
||||||
"instructions": true,
|
"instructions": true,
|
||||||
|
"turn_costs": true,
|
||||||
"point": points.map(function (p) { return p.lat + "," + p.lng; })
|
"point": points.map(function (p) { return p.lat + "," + p.lng; })
|
||||||
},
|
},
|
||||||
traditional: true,
|
traditional: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue