GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
US Zipcode missing but not  XML
Forum Index -> Postal Codes
Author Message
chase



Joined: 02/07/2012 00:27:23
Messages: 1
Offline

When I do a postalCodeLookupJSON query for ZIPCODE=20001, I don't get any hits for countryCode=US.

If I do a postalcode-search.html query for ZIPCODE=20001, I do get a hit for countryCode=US.

Is there something I'm doing wrong? Or is this just a minor inconsistency?

Thanks!
marc



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

Probably something wrong with the way you build your query.

Here it returns a hit :
http://api.geonames.org/postalCodeLookupJSON?postalcode=20001&country=us&username=demo

Marc

[WWW]
ronsaroyan



Joined: 01/01/2013 06:12:50
Messages: 1
Offline

Is there such a script as to get a user to input their US postal code and the script can tell what city they are in?

Thanks
-Ron
[WWW]
marc



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

Hi Ron

The postalCodeSearch service accepts a postalcode and returns information for it:
http://www.geonames.org/export/web-services.html#postalCodeSearch

Best Regards

Marc

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