[OSRM-talk] U-turn penalty?
Xavier Prudent
prudentxavier at gmail.com
Thu May 3 17:56:26 UTC 2018
Dear all,
As a follow-up on my question, for anyone facing the issue:
my way out of this question of forbidding u-turns has been to get a local
version of the OSM map and to edit it using JOSM. I then applied detailed
constraints using the turnrestriction plugin.
Good luck!
Regards,
Xavier Prudent
2018-04-23 18:17 GMT-04:00 Xavier Prudent <prudentxavier at gmail.com>:
> Hello,
>
> I want to forbid u-turns during the routing.
> I hence played with the u_turn_penalty parameter in profiles/car.lua
>
> u_turn_penalty = 20,
>
> then reconstructed the osrm objects using osrm-extract and osrm-contract.
> I tried values 0, 20, 240 and 1000. The routing clearly changed, but I
> keep on getting u-turns. For higher parameters I even get more u-turns.
>
> My understanding was that the higher the parameter, the less u-turn one
> should have.
>
> Did I understand correctly? How can I forbid u-turn then?
>
> Regards,
>
> Xavier
>
> --
>
> *Xavier Prudent *
>
> *Data Scientist - Data Mining - Machine Learning*
>
> Web :* www.xavierprudent.com <http://www.xavierprudent.com>*
> Tel (Québec) : (514) 668 76 46
> Skype : xavierprudent
>
>
>
--
*Xavier Prudent *
*Data Scientist - Data Mining - Machine Learning*
Web :* www.xavierprudent.com <http://www.xavierprudent.com>*
Tel (Québec) : (514) 668 76 46
Skype : xavierprudent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20180503/631e6a80/attachment.html>
More information about the OSRM-talk
mailing list