I have a question for you. Do you think it would be possible for you to create two new webservices:
- getParent (geonameId) returning the geoId of the parent division
- getChildren(geonameId) returning the list that contains all geoIds
There is a service called hierarchy that returns all ancestors of a geonameId. Here the hierarchy for Segesta :
Europe > Italian Republic > Regione Autonoma Siciliana > Provincia di Trapani > Calatafimi-Segesta
my tree navigation system is almost completed, you are able to walk up and down throughout the wolrd's administration divisions.
But I am not able to predict if a specific place has children or not. Would it be possible to have a flag to understand weather a place gotten by children webservice has children or not?
So I could put a link for expansion just for places with children.
I really need some help to complete my project.
To determine weather a place has children or not is vital for my goal. May anyone give me some advice?
I use getchildren web service to obtain a list of places, but I don't know if they are father.