Use 5 meter radius for input locations in Valhalla
This will search for road segments within 5 meter radius of the input location and choose the best path from/to whichever segment gives the cheapest cost. It should be preferable in most scenarios compared to simply snapping to the closest segment. I'll do the same PR for our web app at https://github.com/gis-ops/valhalla-app.
This commit is contained in:
parent
45f0589e62
commit
9f704f1d4e
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ function FOSSGISValhallaEngine(id, costing) {
|
|||
data: {
|
||||
json: JSON.stringify({
|
||||
locations: points.map(function (p) {
|
||||
return { lat: p.lat, lon: p.lng };
|
||||
return { lat: p.lat, lon: p.lng, radius: 5 };
|
||||
}),
|
||||
costing: costing,
|
||||
directions_options: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue