GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Canada webservices postal codes not working  XML
Forum Index -> Postal Codes
Author Message
d2d



Joined: 09/11/2007 04:23:14
Messages: 2
Offline

http://ws.geonames.org/postalCodeSearch?postalcode=V4L&country=CA&maxRows=1

says no results, as do any other canadian postal code I plug in.

Thanks!
marc



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

fixed. I think it was a version incompatibility of some functions. Any how it works now.

Marc

[WWW]
tuthmosis



Joined: 10/01/2008 14:07:47
Messages: 1
Offline

Seams like it isn't working for me.

US zip code works but no Canadian PostalCodes are.

Using Firefox's Firebug, i can see the reply for the following request:
Code:
callback	getLocation
 country	        CA
 noCacheIE	34524353425  (I changed this code as it can be sensitive info)
 postalcode	H3A 2M8
 style	           long


The response is:
Code:
 getLocation({"postalcodes":[]});


Thanks for any help !
marc



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

Hi

For Canada we only have the first three letters, the so called FSA. You have to pass the country code, then we will strip the trailing characters.


http://ws.geonames.org/postalCodeSearchJSON?postalcode=H3A+2M8&country=CA&maxRows=1

Cheers

Marc

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