<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=""><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 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><blockquote type="cite" class=""><div class="">On Feb 15, 2016, at 1:52 PM, James Grant <<a href="mailto:james@grantzone.net" class="">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 face="Helvetica, Arial, sans-serif" class="">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 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=""></body></html>