GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
newbie question - findNearbyPostalCodes  XML
Forum Index -> General
Author Message
adnankhan



Joined: 15/12/2009 19:38:45
Messages: 1
Offline

Hello,

I would like to know if there is a way to use the findNearByPostalCodes API using placename for the city and a state to qualify the search, I tried putting the state abbreviation in the adminCode1 parameter but that does not seem to work.

Here is my query, I'm basically trying to find the nearby postal codes next to Hopkins, MN in the US but the query returns cities in MI.
http://ws.geonames.net/findNearbyPostalCodes?placename=HOPKINS&country=US&adminCode1=MNradius=5

thank you in advance
Adnan
marc



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

Hi

This is not supported by a single call. You would need two calls, first to get lat/lng for the place name and then to get the nearby postal codes. The direct one call service is only supported for postal codes instead of place names.

Best

Marc

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