[OSRM-talk] RunQuery Output
daniel at mapbox.com
Tue Feb 16 16:51:59 UTC 2016
No, not really. Algorithmically, most of the hard work is done during `osrm-extract` and `osrm-prepare`, and these aren't algorithms that are particular conducive to GPU acceleration.
When you make a query, it usually takes a few milliseconds to find the nearest neighbor (snap your lat/lon to the road network), then a few microseconds to find the route and construct the response.
If you're doing lots of route requests, you should be thinking about parallelization - each route request can run on a separate CPU core.
> On Feb 16, 2016, at 7:07 AM, James Grant <james at grantzone.net> wrote:
> Thank you for that, found it and it works a treat. One more question for you: would OSRM benefit speed wise if it ran on a GPU?
> On 15-Feb-16 10:03 PM, Daniel Patterson wrote:
>> There's an updated example client here:
>> https://github.com/Project-OSRM/osrm-backend/blob/develop/example/ <https://github.com/Project-OSRM/osrm-backend/blob/develop/example/>
>> If you look inside the "route_summary" member of the JSON response, you'll find both the "total_time" and "total_distance" sub members, which sound like the values you want. The new example shows how to easily access these.
>>> On Feb 15, 2016, at 1:52 PM, James Grant < <mailto:james at grantzone.net>james at grantzone.net <mailto:james at grantzone.net>> wrote:
>>> Hi there.
>>> I'm building some code based heavily around the "simpleclient.cpp" example in the tools section of the source code. I'm trying to simply extract the driving distance and time from the returned JSON object.
>>> This could be achieved by taking the object returned and manipulating it which seems wasteful, or I could amend the code such that is purely returned the required information. If the latter isn't realistic, then using the existing JSON handler, how could I extract information from the JSON object?
>>> OSRM-talk mailing list
>>> OSRM-talk at openstreetmap.org <mailto:OSRM-talk at openstreetmap.org>
>>> https://lists.openstreetmap.org/listinfo/osrm-talk <https://lists.openstreetmap.org/listinfo/osrm-talk>
>> OSRM-talk mailing list
>> OSRM-talk at openstreetmap.org <mailto:OSRM-talk at openstreetmap.org>
>> https://lists.openstreetmap.org/listinfo/osrm-talk <https://lists.openstreetmap.org/listinfo/osrm-talk>
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OSRM-talk