GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Creating selectors for Country/ADM1/ADM2  XML
Forum Index -> General
Author Message
runa



Joined: 13/09/2007 23:16:55
Messages: 1
Offline

Guys, I'm trying to create 3 linked html selects, the first one for choosing the country, the 2nd one for ADM1 and a 3rd one for ADM2

I'm planning to install the dump in my local DB but in the meanwhile I'm using the webservice.

I have the country code (&country= parameter in the request), but I'm forced to also use a query string (q= parameter in the request), right now I'm using the country name, but I'm not sure if this is correct.

Also, I would like to use the geonameId of the country to get the regions info (instead of this two parameters) Is this possible?

Thanks!


marc



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

Hi Martin

It is correct that you have to add some input to the 'q' parameter, The
country code will do fine. I believe the restriction that the 'q'
parameter is mandatory is obsolete and I will remove it.

The 'children' service returns the administrative divisions for a given
country code :
http://www.geonames.org/export/place-hierarchy.html#children
Is this what you are looking for?

Best Regards

Marc

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