Stream EstateStream Estate
GeoAdministrative Divisions

List the ancestors of an administrative division (breadcrumb / drill-up)

Returns the parent chain of the given division up to the country root — for example a neighborhood, its arrondissement, commune, department, region and country. By default the division itself is excluded and the chain is ordered root first (country first). Use order=NODE_FIRST for immediate-parent first, and includeSelf=true to prepend the division for a ready-to-render breadcrumb.

GET
/geo/administrative-divisions/{id}/ancestors
X-API-KEY<token>

Value for the X-API-KEY header parameter.

In: header

Path Parameters

id*string

Administrative division id.

Query Parameters

order?string

Ordering of the chain: ROOT_FIRST (country first, the default) or NODE_FIRST (immediate parent first).

Value in

  • "ROOT_FIRST"
  • "NODE_FIRST"
includeSelf?boolean

Include the division itself in the chain. Defaults to false.

Response Body

curl -X GET "https://example.com/geo/administrative-divisions/3fa85f64-5717-4562-b3fc-2c963f66afa6/ancestors?order=ROOT_FIRST&includeSelf=false"
[  {    "name": "Paris",    "uniqueCode": "75056",    "locationType": "MUNICIPALITY",    "countryCode": "FR",    "postalCodes": [      "75001",      "75002",      "75003"    ],    "centroid": {      "type": "Point",      "coordinates": [        2.3522,        48.8566      ]    },    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"  }]
Version 0.14.289Last updated