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
| Endpoint | Purpose |
|---|---|
GET /geo/autocomplete | Autocomplete suggestions for user input |
GET /geo/administrative-divisions/{uuid} | Administrative division detail |
GET /geo/administrative-divisions/{id}/descendants | Every division below a given one, paginated with size: see Pagination |
Autocomplete
The query of GET /geo/autocomplete accepts:
- a name, typos tolerated:
marsillefinds Marseille; - a postal code prefix:
750; - a French department number:
83returns the Var first; - a usual abbreviation:
pacareturns 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
| Field | Type |
|---|---|
id | string (UUID) |
name | string |
uniqCode | string | null |
type | enum | null (COUNTRY, ADMINISTRATIVE_REGION, ADMINISTRATIVE_SUBREGION, MUNICIPALITY_GROUP, MUNICIPALITY, MUNICIPAL_DISTRICT, NEIGHBORHOOD, SUB_MUNICIPALITY, SUB_NEIGHBOURHOOD) |
countryCode | enum | null (FR, BE) |
postalCodes | string[] | null |
centroid | GeoJSON geometry | null |
geometry | GeoJSON geometry | null |