GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Global API lookup for canadian zip codes  XML
Forum Index -> Postal Codes
Author Message
jay22



Joined: 08/07/2013 07:03:21
Messages: 3
Offline

Hello,
I am trying this canadian zip code lookup on the API and it doesn't return anything if I don't provide the country:

view-source:http://api.geonames.org/postalCodeLookupJSON?postalcode=H2W1E5&username=demo

Using this it works:
view-source:http://api.geonames.org/postalCodeLookupJSON?postalcode=H2W1E5&country=CA&username=demo

Without providing the country, the search should be done without filtering and should return the same result, why so?

thanks
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

GeoNames only has the fsa (the first three letters) of the Canadian postal codes. If the country is explicitly defined then the remainder will be cut automatically.

Regards

Marc

[WWW]
 
Forum Index -> Postal Codes
Go to:   
Powered by JForum 2.1.5 © JForum Team