<html><head></head><body>This something you can definitely do in the lua profile.<br>Regards,<br>Yves <br><br><div class="gmail_quote">Le 9 décembre 2022 04:16:20 GMT+01:00, Nikhil VJ <nikhil.js@gmail.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Hi,<div><br></div><div>In the .lua profiles I see various customizations based on highway type, road surface, etc.</div><div><a href="https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/car.lua">https://github.com/Project-OSRM/osrm-backend/blob/master/profiles/car.lua</a><br></div><div><br></div><div>I want to introduce similar customization based on road width.<br></div><div><br></div><div>This could involve any of:</div><div>- setting max speed as per width value ranges, same way it's been done with surface tag, </div><div>- applying a weight or penalty, </div><div>- simply disqualifying a way entirely if a criteria is not met.</div><div><br></div><div>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.</div><div><br></div><div>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)</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>--<br>Cheers,<br>Nikhil VJ<br><a href="https://nikhilvj.co.in" target="_blank">https://nikhilvj.co.in</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div></body></html>