Geoprocessing framework for Brazil

Asked

Viewed 240 times

4

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

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

Someone could provide me with a light. Thank you

  • It’s not clear to me what you want. You are looking for e.g. a base with the boundaries of all Brazilian municipalities (and information on names, which belong to each state, etc.)?

1 answer

3


Google Maps offers resolution functionality via Geocode API; you can combine with Fusion Tables via Fusiontableslayer.

use the following endpoint for research:

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 the city and administrative_area_level_1 the state.

Example:

http://maps.googleapis.com/maps/api/geocode/json?latlng=-22.8275,-41.9753&sensor=false&language=en

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:

http://www.geocodezip.com/geoxml3_test/v3_FusionTables_query_sidebarF_local.html?country=Brazil

  • 1

    Note: There are limits of use for this service Google Geocoder ,as specified here. In the way free being: " - API: 2500 requests per 24 hour period. - 5 requests per Second." . But if its use does not extrapolate these limits is a good option.

  • @Correct Fernando. Adding to your comment, this limit is per IP (if the application is not identified) or per application.

Browser other questions tagged

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