GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How do I get a list of cities, region, country for a given city through the webservice  XML
Forum Index -> General
Author Message
smith88



Joined: 07/05/2009 23:54:10
Messages: 2
Offline

How do I get city, region, country for a given city through the webservice - akin to the search on the home page. For example, burlington

Burlington USA, Vermont
..
Burlington Australia, Victoria
..
Burlington Canada, Ontario

I've tried everything and I end up with the city and country, but not the region. I would like to emulate the following output:

http://www.geonames.org/search.htmlq=burlington&country=

Any help would be greatly appreciated.
marc



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

It is in the xml element 'adminName1':
http://ws.geonames.org/search?q=burlington&maxRows=10&style=full

[WWW]
smith88



Joined: 07/05/2009 23:54:10
Messages: 2
Offline

Thanks, that works perfectly.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team