[OSRM-talk] Road width based customization

Nikhil VJ nikhil.js at gmail.com
Fri Dec 9 03:16:20 UTC 2022


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/958ff8b1/attachment.htm>


More information about the OSRM-talk mailing list