Trying out the Google Maps Distance Matrix API for calculating the time between the origin and destination and I'm using this API
https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=32.988777,xxxx&destinations=32.988777,xxxx&key=myAPIKey (xxxx - I'm providing a valid value just masking it on here)
I am getting a response as
{
"destination_addresses" : [ "Plano, TX 75024, USA" ],
"origin_addresses" : [ "Coppell, TX 75019, USA" ],
"rows" : [
{
"elements" : [
{
"distance" : {
"text" : "13.4 mi",
"value" : 21636
},
"duration" : {
"text" : "14 mins",
"value" : 833
},
"status" : "OK"
}
]
}
],
"status" : "OK"
}
But I'm unable to correlate the req and response as the response is missing the long/lat, How do I solve this issue?