GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Dependencies  XML
Forum Index -> FAQ - frequently asked questions
Author Message
Kjserrgurbvue



Joined: 21/02/2018 12:59:22
Messages: 1
Offline


I am trying to link 2 drop down lists. The user wants British Virgin Islands to appear under United Kingdom. I can see from the page below that this link exists somewhere as its shown in the dependencies section:

http://www.geonames.org/countries/GB/united-kingdom.html

How do I get this information using the api's or an alternative? I can't see dependencies in any of the fields.

Thanks in advance for any help!
marc



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

Hi

The children service accepts a parameter 'hierarchy'. With the value 'dependency' it will return the dependencies:

http://api.geonames.org/children?geonameId=2635167&username=demo&hierarchy=dependency

Marc

[WWW]
 
Forum Index -> FAQ - frequently asked questions
Go to:   
Powered by JForum 2.1.5 © JForum Team