Stream EstateStream Estate
Concepts

Geo

Geographic entities for filtering

The /geo/* endpoints power the geographic filters of the POST /properties search — property.locations.in.ids (administrative-division UUIDs) and property.locations.in.uniqueCodes (native national codes, e.g. the INSEE code in France). Covered countries: France (FR) and Belgium (BE).

Endpoints

EndpointPurpose
GET /geo/autocompleteAutocomplete suggestions for user input
GET /geo/administrative-divisions/{uuid}Administrative division detail
GET /geo/administrative-divisions/{id}/descendantsEvery division below a given one, paginated with size: see Pagination

Autocomplete

The query of GET /geo/autocomplete accepts:

  • a name, typos tolerated: marsille finds Marseille;
  • a postal code prefix: 750;
  • a French department number: 83 returns the Var first;
  • a usual abbreviation: paca returns Provence-Alpes-Côte d'Azur first, idf Île-de-France.

Narrow the suggestions to one or several kinds of division with type, and set their number with limit (30 at most).

AdministrativeDivision schema

FieldType
idstring (UUID)
namestring
uniqCodestring | null
typeenum | null (COUNTRY, ADMINISTRATIVE_REGION, ADMINISTRATIVE_SUBREGION, MUNICIPALITY_GROUP, MUNICIPALITY, MUNICIPAL_DISTRICT, NEIGHBORHOOD, SUB_MUNICIPALITY, SUB_NEIGHBOURHOOD)
countryCodeenum | null (FR, BE)
postalCodesstring[] | null
centroidGeoJSON geometry | null
geometryGeoJSON geometry | null
Version 0.34.464Last updated

On this page