GeoNames Home
|
Postal Codes
|
Download / Webservice
|
About
GeoNames Forum
Search
Recent Topics
Back to home page
Register
/
Login
Dependencies
Forum Index
->
FAQ - frequently asked questions
Author
Message
21/02/2018 21:01:10
Subject:
Dependencies
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!
12/03/2018 11:37:01
Subject:
Re:Dependencies
marc
Joined: 08/12/2005 07:39:47
Messages: 4416
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
Forum Index
->
FAQ - frequently asked questions
Go to:
Select a forum
Forum in English
-------------
General
Administrative Divisions
FAQ - frequently asked questions
Postal Codes
Discussion of GeoNames Toponyms
Forum in other language
-------------
Forum in Deutsch
Powered by
JForum 2.1.5
©
JForum Team
info@geonames.org
GeoNames Home
Postal Codes
Download / Webservice
Forum
About