I'm migrating from Google Directions API to Routes API, and I've noticed that the leg objects returned in Routes API only include the latitude/longitude of the start/end location. In Directions API, it returns both the latitude/longitude and the address name. For example :
Directions API response :
"legs": [
{
"start_address": "London SW1A 0AA, UK",
"start_location: {
"lat": 51.5005477,
"lng": -0.1261448
}
Routes API response :
"legs": [
{
"startLocation: {
"latLng": {
"latitude": 51.5005477,
"longitude": -0.1261448
}
}
Is there anyway to get Routes API to return the start/end address name for each leg? I'm already setting the HTTP header 'X-Goog-FieldMask' to '*' to ensure all fields are returned.
Thanks.