This will take in two addresses and return the distance between them
object (Address) | |
object (Address) |
{- "destination": {
- "address_1": "string",
- "address_2": "string",
- "city": "string",
- "country": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "formatted_address": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "latitude": 0.1,
- "longitude": 0.1,
- "phone_number": "string",
- "postal_code": "string",
- "state_province": "string",
- "timezone": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "origin": {
- "address_1": "string",
- "address_2": "string",
- "city": "string",
- "country": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "formatted_address": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "latitude": 0.1,
- "longitude": 0.1,
- "phone_number": "string",
- "postal_code": "string",
- "state_province": "string",
- "timezone": "string",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
{- "distance_meters": 0,
- "duration_seconds": 0
}