Fellows,
We are thinking about referencing our data according to your GeoPlanet repository.
We think it is great and reliable.
However, we would like to understand why the "continent" level is not implemented in the place hierarchy.
When calling the "Parent place for "France"...
... we were expecting "Europe"
... but we got "Earth"
Are you planning to add this level or shall we implement it by ourselves ?
Thank you in advance for your answer,
Cyrille
The GeoPlanet place hierarchy only includes administrative relationships (Postal code, town, county, state, country). There is no administrative area that contains France (the EU being a loose union of countries). Earth is included in the place hierarchy so that countries and places not contains by countries (like oceans) can have a parent place.
It is easy to determine the continent associated with a place using the belongtos collection and a placetype filter of "Continent". For example:
CODE
http://where.yahooapis.com/v1/place/23424819/belongtos.type(Continent)?view=long&appid=[yourappid]
will return information for Europe.
Please note that for some places, such as Russia, are associated with more than one continent. For example:
CODE
http://where.yahooapis.com/v1/place/23424936/belongtos.type(Continent)?view=long&appid=[yourappid]
will return information for Europe and Asia.
Eddie Babcock
Yahoo! Geo Technologies