[OSRM-talk] c++ libosrm api thread safe ?
Daniel Hofmann
hofmann at mapbox.com
Wed Jun 21 07:23:24 UTC 2017
Yes it is thread-safe: you can create a single OSRM object and hammer it
with parallel requests. Its interface is const
https://github.com/Project-OSRM/osrm-backend/blob/99b02cedfbfc6fb24f6b07dedd6df37e885690a9/include/osrm/osrm.hpp#L48-L131
Adding OpenStreetMap NodeIDs to the route is possible by using the Nodes
Annotations type in the RouteParameters
https://github.com/Project-OSRM/osrm-backend/blob/99b02cedfbfc6fb24f6b07dedd6df37e885690a9/include/engine/api/route_parameters.hpp#L70-L80
Cheers,
Daniel J H
On Tue, Jun 20, 2017 at 11:42 PM, <airof98 at gmail.com> wrote:
> Hi
>
> I add osm nodes to route result.
> and I try to customize turn guide with osm nodes.
>
> So, If I service routing server,
> Is libosrm api thread safe ?
>
>
> Sincerely,
> HeeSu Shin
>
>
> _______________________________________________
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osrm-talk/attachments/20170621/20128e75/attachment.html>
More information about the OSRM-talk
mailing list