title: LocationBox Distance Matrix API
body: <p>I want to create a distance matrix I made it by using googlemap APi with this code</p>
  
  <pre><code>url = "http://maps.googleapis.com/maps/api/distancematrix/json?origins={0}&amp;destinations={1}&amp;mode=driving&amp;language=en-EN&amp;sensor=false".format(str(orig_coord),str(dest_coord))
  result= simplejson.load(urllib.urlopen(url))
  driving_time = result['rows'][0]['elements'][0]['distance']['value']
  </code></pre>
  
  <p>Now, I want to make same matrix by using LocationBox. But I dont know how to put distances data to an array. Here is output: </p>
  
  <pre><code>{u'status': 0, u'distances': [{u'topoint': {u'latitude': 40.984818, u'type': 0, u'name': u'POINTB', u'longitude': 29.083635}, u'distance': 12865, u'frompoint': {u'latitude': 41.1, u'type': 0, u'name': u'POINTA', u'longitude': 29.1}}, {u'topoint': {u'latitude': 40.948784, u'type': 0, u'name': u'POINTC', u'longitude': 29.170496}, u'distance': 17809, u'frompoint': {u'latitude': 41.1, u'type': 0, u'name': u'POINTA', u'longitude': 29.1}}, {u'topoint': {u'latitude': 40.948784, u'type': 0, u'name': u'POINTC', u'longitude': 29.170496}, u'distance': 8335, u'frompoint': {u'latitude': 40.984818, u'type': 0, u'name': u'POINTB', u'longitude': 29.083635}}], u'transactionid': u'LBS_98961306'}
  </code></pre>
  
  <p>How can I get Distance data from this output?</p>