<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi James,<div class=""><br class=""></div><div class="">  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.</div><div class=""><br class=""></div><div class="">  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.</div><div class=""><br class=""></div><div class="">  If you're doing lots of route requests, you should be thinking about parallelization - each route request can run on a separate CPU core.</div><div class=""><br class=""></div><div class="">daniel</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 16, 2016, at 7:07 AM, James Grant <<a href="mailto:james@grantzone.net" class="">james@grantzone.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    <div class="moz-cite-prefix">Daniel.<br class="">
      <br class="">
      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?<br class="">
      <br class="">
      Regards<br class="">
      <br class="">
      On 15-Feb-16 10:03 PM, Daniel Patterson wrote:<br class="">
    </div>
    <blockquote cite="mid:117087E9-C82B-4723-A562-A0F7E481FA09@mapbox.com" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
      <div class="">James,</div>
      <div class=""><br class="">
      </div>
      <div class="">  There's an updated example client here:</div>
      <div class=""><br class="">
      </div>
      <div class="">    <a moz-do-not-send="true" href="https://github.com/Project-OSRM/osrm-backend/blob/develop/example/" class="">https://github.com/Project-OSRM/osrm-backend/blob/develop/example/</a></div>
      <div class=""><br class="">
      </div>
      <div class="">  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.</div>
      <div class=""><br class="">
      </div>
      <div class="">daniel</div>
      <br class="">
      <div class="">
        <blockquote type="cite" class="">
          <div class="">On Feb 15, 2016, at 1:52 PM, James Grant <<a moz-do-not-send="true" href="mailto:james@grantzone.net" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:james@grantzone.net">james@grantzone.net</a>> wrote:</div>
          <br class="Apple-interchange-newline">
          <div class="">
            <meta http-equiv="content-type" content="text/html;
              charset=utf-8" class="">
            <div bgcolor="#FFFFFF" text="#000000" class=""> <font class="" face="Helvetica, Arial, sans-serif">Hi there.<br class="">
                <br class="">
                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. <br class="">
                <br class="">
                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?<br class="">
                <br class="">
                Cheers<br class="">
              </font> </div>
            _______________________________________________<br class="">
            OSRM-talk mailing list<br class="">
            <a moz-do-not-send="true" href="mailto:OSRM-talk@openstreetmap.org" class="">OSRM-talk@openstreetmap.org</a><br class="">
            <a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/osrm-talk">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br class="">
          </div>
        </blockquote>
      </div>
      <br class="">
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
OSRM-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/osrm-talk">https://lists.openstreetmap.org/listinfo/osrm-talk</a>
</pre>
    </blockquote>
    <br class="">
  </div>

_______________________________________________<br class="">OSRM-talk mailing list<br class=""><a href="mailto:OSRM-talk@openstreetmap.org" class="">OSRM-talk@openstreetmap.org</a><br class="">https://lists.openstreetmap.org/listinfo/osrm-talk<br class=""></div></blockquote></div><br class=""></div></body></html>