Documentation du proxy Geonames

Ci-dessous, une copie de la doc de geonames, adaptée à ce proxy. Lien vers la doc originale

Place Hierarchy Webservices

Returns the children (admin divisions and populated places) for a given geonameId. The children are the administrative divisions within an other administrative division, like the counties (ADM2) in a state (ADM1) or also the countries in a continent. The leafs are populated places, other feature classes like spots, mountains etc are not included in this service. Use the search service if you need other feature classes as well.

Webservice Type: XML or JSON
Url: geonames.php/children?
geonameId: the geonameId of the parent
maxRows: number of rows returned, default is 200
hierarchy: this optional parameter allows to use other hiearchies then the default administrative hierarchy. So far only 'tourism' is implemented.
Result: returns a list of GeoName records

Example, regions of Italy:
Example for a tourism hierarchy, islands for the Canaries:

Returns all GeoNames higher up in the hierarchy of a place name.

Webservice Type : XML or JSON
Url : geonames.php/hierarchy?
Parameters :
geonameId : the geonameId for the hierarchy
Result : returns a list of GeoName records, ordered by hierarchy level. The top hierarchy (continent) is the first element in the list

Example, hierarchy of Zurich, Switzerland, Europe:

Returns all neighbours for a country or administrative division. (coverage: all countries on country level, and lower levels as specified here: supported levels)

Webservice Type : XML or JSON
Url : geonames.php/neighbours?
Parameters :
geonameId : the geonameId for the neighbours (country or ADM)
country: the country code (alternative parameter instead of the geonameId)
Result : returns the neighbours of a toponym, currently only implemented for countries

Example, neighbours of Switzerland:

returns all features within the GeoName feature for the given geoNameId. It only returns contained features when a polygon boundary for the input feature is defined.

Webservice Type : XML or JSON
Url : geonames.php/contains?
Parameters :
geonameId : the geonameId for enclosing feature
featureClass: filter by featureClass (optional)
featureCode: filter by featureCode (optional)
Result : enclosed features (only when polyon boundary is available)

Example, features on island Texel:

Returns all siblings of a GeoNames toponym with feature class A.

Webservice Type : XML or JSON
Url : geonames.php/siblings?
Parameters :
geonameId : the geonameId for the siblings
Result : returns a list of GeoNames records (feature class A) that have the same administrative level and the same father

Example, Siblings of France:

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.