Is it possible to list all the neighborhoods of a city?

Asked

Viewed 10,416 times

8

I am using the Google-Maps API, but I did not find anywhere in the documentation something related, I would like to list all the neighborhoods of a specific city, but the items with neighborhood (Neighborhood) only appear if I type a street (in some cases have to have the street and a residential number) so that the neighborhoods are available.

For example:

http://maps.googleapis.com/maps/api/geocode/json?address=Rua%20Cascavel,%20Curitiba%20-%20Paraná

The neighborhood returns to me:

{
   "long_name" : "Boqueirão",
   "short_name" : "Boqueirão",
   "types" : [ "neighborhood", "political" ]
}

But this way:

http://maps.googleapis.com/maps/api/geocode/json?address=Rua%20Cascavel,%20Curitiba%20-%20Paraná

Just give me back the locality, administrative_area_level_2, administrative_area_level_1 and country

Is it possible to return all neighborhoods of a specific city? If it is not possible there is some alternative?

1 answer

3

I don’t know if we’ll end up repeating an argument that has already happened around here regarding Ceps, But what I think and have had experience with this neighborhood case is that it’s unlikely to find something up-to-date and free on the Internet. Probably with the database of Post office it is possible to get all the neighborhoods of a city, but it has that question of the high cost.

The alternative of Google Maps also find impracticable, both for the value of business use and also for the free form, since the terms of service of Google Maps It is forbidden to download mass information of any content (up because it has that limit of 2500 requests), in case to do some kind of service to get all of them.

Any street information, even cities is very fickle, every day should appear something new in Brazil, which ends up needing a daily update of this information, and in turn invalidating many other sources we find there.

This database in Mysql with the tables bairros, cidades and logradouros maybe that would be the alternative "offline" for you, but it’s a 2011 archive and I don’t know if the information is even older.

Note: For knowledge, the amount of records on this basis Mysql: 28,883 neighborhoods, 9,968 cities and 563,825 public places.

  • Thanks for the tip, unfortunately my problem is that many webservices (partners) that the company uses works with the names as Googlemaps and do not provide this list of neighborhoods/ addresses publicly :(

Browser other questions tagged

You are not signed in. Login or sign up in order to post.