Le 16/09/2017 à 17:32, Frank Durstewitz a écrit :
Hi.
I try to work on a custom profile (by distance: weight_name =
'distance') based on car.lua from 5.11, which can use highway:track as
a "last mile" for delivery, if no other possibility exists.
I run a profile for the same need.
Example:
https://www.openstreetmap.org/directions?engine=osrm_car&route=48.16613%2C11.25057%3B48.16802%2C11.25085#map=17/48.16743/11.25135
The target is only reachable via a track (grade 1 or 2).
I already added "track" to the restricted_highway_whitelist and set
the speed to 5. But setting the speed is not the correct way, as i
understood, i should set a rate for tracks?
There is two ways to do this:
- use restricted class for track
- use rate to penalize track
To be clear: Tracks should on be used as last resort, if no other
possibility exists to reach a destination.
The idea of last resort match the restricted class concept.
On my side I have chosen the second solution, the rate.
But where and how? Any example for that? I cannot find any hint how to
set that.
I have published independently many part of my custom profile into
github osrm contrib. But not this part... I was thinking it's
oblivious... may be is not ;-)
Frédéric.
_______________________________________________
OSRM-talk mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/osrm-talk