| Author |
Message |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 05/07/2009 17:11:46
|
gbrits
Joined: 11/03/2008 14:33:50
Messages: 14
Offline
|
I realize this is a tough one, but:
has anyone attempted to create the relationship as to what places lay on (are contained in) a particular island?
perhaps using other data in conjunction to geonames?
Or if it can't be done, i'd like to know why.
Thhanks,
Britske
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 07/07/2009 22:01:32
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
It has not yet been done as far as I know. With polygon information for islands it would be rather easy to achieve, but without this it is a lot of work. So I would start looking for island polygons.
Best
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 08/07/2009 13:11:49
|
gbrits
Joined: 11/03/2008 14:33:50
Messages: 14
Offline
|
for those interested and for future reference:
it can be done pretty realiably in conjunction with Yahoo Geoplanet. given that:
1. island is a featurecode in Yahoo geoplanet.
2. island returns children.
so, given all islands in the geonames db, use: /places webservice:
1. lookup islands by name and filter on type
i.e: http://where.yahooapis.com/v1/places$and(.q(texel),.type(island))?appid=YOUR_APPID_HERE
gives: Texel. an island in the netherlands
2. (optinonal) disambiguate by lat/ long if necessary.
You now have the woeid of the island.
3. iteratively walk down the hierarchy-tree until entities of type Town are reached using webservice:
/place/<woeid>/children
i.e: http://where.yahooapis.com/v1/place/12474877/children?appid=YOUR_APPID_HERE
Cheers,
Britske
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 08/07/2009 13:13:40
|
gbrits
Joined: 11/03/2008 14:33:50
Messages: 14
Offline
|
of course you have to map those woeid-towns back to geoname-ids, but since you have lat/ long pairs, name and country that can be done pretty realiably and efficiently.
|
|
|
 |
|
|