node-distance-matrix
Version:
A node distance matrix package that consumes Google Distance Matrix API to get distances between locations
26 lines • 646 B
JSON
{
"destination_addresses" : [ "New York, NY, USA" ],
"origin_addresses" : [ "Washington, DC, USA" ],
"rows" : [
{
"elements" : [
{
"distance" : {
"text" : "225 mi",
"value" : 361715
},
"duration" : {
"text" : "3 hours 49 mins",
"value" : 13725
},
"duration_in_traffic": {
"text": "4 hours 10 mins",
"value": 15015
},
"status" : "Mock Distance Matrix Response"
}
]
}
],
"status" : "OK"
}