How to get the neighborhood through geolocation?

1

All other fields return normally through geolocation, only the neighborhood comes in white. What's wrong?

    
asked by anonymous 02.08.2015 / 20:36

1 answer

1

You should use District for neighborhood and not Neighborhood, but it depends on location. has places in the United States that it returns Neighborhood. I use this way:

Bairro = string.IsNullOrEmpty(result.Locations[0].Address.Neighborhood) ? result.Locations[0].Address.District : result.Locations[0].Address.Neighborhood;
    
21.08.2015 / 17:57