[OSRM-talk] Road width based customization
Yves
ycai at mailbox.org
Fri Dec 9 05:15:18 UTC 2022
This something you can definitely do in the lua profile.
Regards,
Yves
Le 9 décembre 2022 04:16:20 GMT+01:00, Nikhil VJ <nikhil.js at gmail.com> a écrit :
>Hi,
>
>In the .lua profiles I see various customizations based on highway type,
>road surface, etc.
>https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/car.lua
>
>I want to introduce similar customization based on road width.
>
>This could involve any of:
>- setting max speed as per width value ranges, same way it's been done with
>surface tag,
>- applying a weight or penalty,
>- simply disqualifying a way entirely if a criteria is not met.
>
>Which tags this will be taken from is not an issue, since we have ways of
>doing some processing on the data locally before loading into OSRM. You can
>assume that the highway will have some tag having a numerical value of road
>width in meters, and in case of a two-way road this value will be
>roughly half of the curb-to-curb width.
>
>How to go about the same? Is this possible directly from the .lua profile,
>or would it be recommended to dig into the C++ code for the same? (trying
>to size up the task)
>
>--
>Cheers,
>Nikhil VJ
>https://nikhilvj.co.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20221209/d4dd03f3/attachment.htm>
More information about the OSRM-talk
mailing list