<div dir="ltr">In your lua file, first get the highway tag:<div><br></div><div>  local highway = way.tags:Find("highway")<div><br></div></div><div>Then chech the value and either return false to completely ignore the way, or return a low speed to make it unattractive, but still passable.</div>
<div><br></div><div>If you just want to modify the file profiles/car.lua, you can simple remove these two lines:</div><div><br></div><div><div>  ["motorway"] = 90,</div><div>  ["motorway_link"] = 75,</div>
</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 6:30 PM, Cédric NOËL <span dir="ltr"><<a href="mailto:cedric.noel@actimage.com" target="_blank">cedric.noel@actimage.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Sorry for asking again... does anyone has any tips to help me with profile<br>
lua files ? :-)<br>
<br>
Cédric<br>
<br>
<br>
-----Message d'origine-----<br>
De : Cédric NOËL [mailto:<a href="mailto:cedric.noel@actimage.com">cedric.noel@actimage.com</a>]<br>
Envoyé : jeudi 10 juillet 2014 17:06<br>
À : 'Mailing list to discuss Project OSRM'<br>
<div class="HOEnZb"><div class="h5">Objet : Re: [OSRM-talk] Multiple profiles<br>
<br>
Thanks for your reply Frederik, it's ok to select the profile we want to<br>
use.<br>
<br>
Now, we wonder how to change the car.lua in order to forbid motorways for<br>
cars.<br>
Do you have any idea or some example to do that ?<br>
<br>
Thanks!<br>
<br>
Cédric NOËL | Technical Project Manager | ACTIMAGE Consulting SAS   Business<br>
Unit : 1 rue Saint-Léon F-67000 STRASBOURG    :  Siège social : 15, rue du<br>
Louvre F-75001 PARIS<br>
<br>
<br>
<br>
<br>
-----Message d'origine-----<br>
De : Frederik Ramm [mailto:<a href="mailto:frederik@remote.org">frederik@remote.org</a>] Envoyé : mercredi 9 juillet<br>
2014 21:03 À : <a href="mailto:osrm-talk@openstreetmap.org">osrm-talk@openstreetmap.org</a> Objet : Re: [OSRM-talk] Multiple<br>
profiles<br>
<br>
Hi,<br>
<br>
On 07/09/2014 02:42 PM, Cédric NOËL wrote:<br>
> We think that we can do it with different lua profiles (As for the<br>
> bike profile we hope that motorways are skipped ;-)).<br>
<br>
Note that there are a number of countries where cycling on motorways is<br>
allowed and sometimes even recommended:<br>
<br>
<a href="http://cycleseven.org/cycling-on-the-motorway" target="_blank">http://cycleseven.org/cycling-on-the-motorway</a><br>
<br>
> ./osrm-routed map.osrm -t 1 -p 5000<br>
> ./osrm-routed map_motorways_banned.osrm -t 1 -p 5001<br>
<br>
Yes, this works.<br>
<br>
> -              We do not really understand how lua profiles are managed<br>
> / what we can change to do it<br>
<br>
When processing data into a routing graph, the file profile.lua is used.<br>
You can make this point to one of several pre-made profiles in the profiles<br>
subdirectory, or simply replace it with whatever you want to use.<br>
<br>
Bye<br>
Frederik<br>
<br>
--<br>
Frederik Ramm  ##  eMail <a href="mailto:frederik@remote.org">frederik@remote.org</a>  ##  N49°00'09" E008°23'33"<br>
<br>
_______________________________________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
<br>
<br>
_______________________________________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
<br>
<br>
_______________________________________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
</div></div></blockquote></div><br></div>