GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Brazil postal code  XML
Forum Index -> Postal Codes
Author Message
dakar


[Avatar]

Joined: 14/03/2017 13:50:03
Messages: 11
Offline

Hi,
I've a problem when looking for this postal code: 30360-400

Santa LĂșcia
Belo Horizonte - Minas Gerais
Brasil

The api call is:
http://api.geonames.org/postalCodeLookupJSON?username=demo&style=full&postalcode=30360-400&country=br&formatted=true

and returns:
{"postalcodes": []}


Trying to undersand, I called this other api (Santa LĂșcia lat and lnf from google Maps):
http://api.geonames.org/findNearbyPostalCodes?lat=-19.89&lng=-44.02&username=demo

and it only returns 30000-000 for Belo Horizonte - Minas Gerais...


Can explain what is the problem?
What I'm wrong doing?
dakar


[Avatar]

Joined: 14/03/2017 13:50:03
Messages: 11
Offline

tx Marc!!


Hi Dakar

The reason is that we do not have the full postal codes for Brazil.

Postal Code restrictions:

For Canada we have only the first letters of the full postal codes (for copyright reasons)
For Ireland we have only the first letters of the full postal codes (for copyright reasons)
For Malta we have only the first letters of the full postal codes (for copyright reasons)
The Argentina data file contains 4-digit postal codes which were replaced with a new system in 1999.
For Brazil only major postal codes are available (only the codes ending with -000 and the major code per municipality).

see: http://www.geonames.org/export/web-services.html

Marc
 
Forum Index -> Postal Codes
Go to:   
Powered by JForum 2.1.5 © JForum Team