GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Request for new webservices : siblings & neighbours  XML
Forum Index -> General
Author Message
geotree


[Avatar]
Joined: 23/07/2007 18:28:40
Messages: 138
Location: France
Offline

children webservice is great :
http://www.geonames.org/export/place-hierarchy.html#children

More similar webservices would be useful :


1/ siblings :
siblings(node) = children(parent(node)) - node;


2/ neighbours :
all nodes from same level with a common border

For France country, this would return :
Spain, Andorra, Monaco, Italy, Switzerland, Germany, Luxembourg, Belgium.
(Should also work for ADM1/2/3/4)


Christophe

Christophe
geotree.geonames.org
geotree.geonames.org/geotree.html
[WWW]
marc



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

Ok.

The siblings are here :
http://ws.geonames.org/siblings?geonameId=3017382

and the neighbours here :
http://ws.geonames.org/neighbours?geonameId=3017382

The neighbours is only implemented for countries, for administrative levels we have to calculate the information first.

Cheers

Marc

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