GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Zip code filtering in FindNearbyPostalCodesJSON endpoint  XML
Forum Index -> General
Author Message
Mike Z



Joined: 06/12/2011 00:25:25
Messages: 1
Offline

Some zip code queries against FindNearbyPostalCodesJSON are returning unexpected results suddenly. Some US zip code searches are no longer returning results, instead favoring other countries. Other zip code searches work correctly

e.g. zip code lookup for 98074 (Sammamish, WA, US) returns townships in Italy:
http://api.geonames.org/findNearbyPostalCodesJSON?postalcode=98074&username=[hidden]

unless I specify country:
http://api.geonames.org/findNearbyPostalCodesJSON?postalcode=98074&username=[hidden]&country=US

My recollection was that without a country specified all results would be returned.

marc



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

The findNearbyPostalCodes service returns postal codes near to a given location. Normally the lat/lng of the location is passed as parameters. The service also accepts a postal code as parameter and will then return the closest postal code to the first matching code. When you pass 98074 then the service does not know which country you prefer.

Best Regards

Marc

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