Framework for geoprocessing for Brazil

4

I found several frameworks on the internet for geoprocessing. The problem is that all were created for the US regions.

Does anyone know of any framework that I can get to the granularity of a city? Example: Map of Brazil by regions, when clicking on a region it is dismembered by the IBGE regions.

Someone could give me a light. Thanks

    
asked by anonymous 16.06.2015 / 20:33

1 answer

3

Google Maps offers resolution functionality via GeoCode API ; you can combine it with Fusion Tables via FusionTablesLayer .

use the following endpoint for searches:

http://maps.googleapis.com/maps/api/geocode/json?latlng=[Latitude],[Longitude]&sensor=false&language=pt

For results in Brazil, the key locality indicates neighborhood, administrative_area_level_2 city and administrative_area_level_1 state.

Example:

link

It will return a JSON containing the following block:

"address_components" : [
        {
           "long_name" : "4288-4572",
           "short_name" : "4288-4572",
           "types" : [ "street_number" ]
        },
        {
           "long_name" : "Estrada Guriri",
           "short_name" : "Estr. Guriri",
           "types" : [ "route" ]
        },
        {
           "long_name" : "Cabo Frio",
           "short_name" : "Cabo Frio",
           "types" : [ "locality", "political" ]
        },
        {
           "long_name" : "Cabo Frio",
           "short_name" : "Cabo Frio",
           "types" : [ "administrative_area_level_2", "political" ]
        },
        {
           "long_name" : "Rio de Janeiro",
           "short_name" : "RJ",
           "types" : [ "administrative_area_level_1", "political" ]
        },
        {
           "long_name" : "Brasil",
           "short_name" : "BR",
           "types" : [ "country", "political" ]
        }

To obtain the states that make up the country:

link

    
16.06.2015 / 21:05