<div dir="ltr"><div><div><div>Yes it is thread-safe: you can create a single OSRM object and hammer it with parallel requests. Its interface is const <br><br><a href="https://github.com/Project-OSRM/osrm-backend/blob/99b02cedfbfc6fb24f6b07dedd6df37e885690a9/include/osrm/osrm.hpp#L48-L131">https://github.com/Project-OSRM/osrm-backend/blob/99b02cedfbfc6fb24f6b07dedd6df37e885690a9/include/osrm/osrm.hpp#L48-L131</a><br><br></div>Adding OpenStreetMap NodeIDs to the route is possible by using the Nodes Annotations type in the RouteParameters<br><br><a href="https://github.com/Project-OSRM/osrm-backend/blob/99b02cedfbfc6fb24f6b07dedd6df37e885690a9/include/engine/api/route_parameters.hpp#L70-L80">https://github.com/Project-OSRM/osrm-backend/blob/99b02cedfbfc6fb24f6b07dedd6df37e885690a9/include/engine/api/route_parameters.hpp#L70-L80</a><br><br></div>Cheers,<br></div>Daniel J H<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 20, 2017 at 11:42 PM, <span dir="ltr"><<a href="mailto:airof98@gmail.com" target="_blank">airof98@gmail.com</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">HiĀ <div><br></div><div>I add osm nodes to route result.</div><div><div>and I try to customize turn guide with osm nodes.</div><div><br></div><div>So, If I service routing server,</div><div><div>Is libosrm api thread safe ?</div></div><div><br></div><div><br></div><div>Sincerely,</div><div>HeeSu Shin</div><div><br></div></div></div>
<br>______________________________<wbr>_________________<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.<wbr>org/listinfo/osrm-talk</a><br>
<br></blockquote></div><br></div>