<div dir="ltr"><div>The Lua profiles currently only handle restriction exceptions, as in restriction=*, except=* tag combinations.<br><br></div><div>The restriction parsing in the backend happens here:<br><a href="https://github.com/Project-OSRM/osrm-backend/blob/2a05b70dfcdee1bf3f1ffa4fd1a6e1b1663984fc/src/extractor/restriction_parser.cpp">https://github.com/Project-OSRM/osrm-backend/blob/2a05b70dfcdee1bf3f1ffa4fd1a6e1b1663984fc/src/extractor/restriction_parser.cpp</a><br><br></div><div>Have a look at the TryParse function: this is where you want to filter for your specific use-case.<br><br></div><div>In the long term, maybe a more elegant solution would be to put more of this logic into the profiles..<br><br></div><div>Cheers,<br></div><div>Daniel J H<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 26, 2016 at 8:35 PM, Nathan Wessel <span dir="ltr"><<a href="mailto:nate.wessel@mail.utoronto.ca" target="_blank">nate.wessel@mail.utoronto.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi all,</p>
<p>I've just set up OSRM and am very happy with the results...except for one thing. It seems that someone in my city has added quite a few 'restriction'='no_right_turn_on_red' relations. It seems that these are being interpreted by OSRM as equivalent to <span>'restriction'='no_right_turn'</span>
 which is the much more common tag. Obviously, that interpretation would not be correct and I'm seeing errors where these relations are present.<br>
</p>
<p><br>
</p>
<p>Is there a way to completely ignore this particular turn "restriction" without ignoring all the others?</p>
<p><br>
Thanks,</p>
<div>
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span style="font-size:10pt"><strong>Nate Wessel</strong></span><br>
<span style="font-size:10pt;color:rgb(117,123,128)"><span style="color:rgb(117,123,128)">Jack of all trades, master of geography</span></span></p>
<p><span style="font-size:10pt;color:rgb(117,123,128)"><span style="color:rgb(117,123,128)"><a href="tel:1-330-936-2849" value="+13309362849" target="_blank">1-330-936-2849</a><br>
</span></span></p>
<p><span style="font-size:10pt;color:rgb(0,111,201);text-decoration:underline"><span style="color:rgb(0,111,201);text-decoration:underline"><a title="Ctrl+Click or tap to follow the link" href="http://www.vesaliusdesign.com" target="_blank">Vesalius Design</a></span></span></p>
</div>
</div>
</div>
</div>

<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" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div>