SmartGare
API referenceEndpoints

Search the official list of places

Returns the active places whose name, in any language, contains the letters given, those that start with them first, each with its kind, the places it lies in and each source's code for it. **Required permission:** `referential.locality:read`

GET/referential/v1/topographic-places

Returns the active places whose name, in any language, contains the letters given, those that start with them first, each with its kind, the places it lies in and each source's code for it.

Required permission: referential.locality:read

AuthorizationBearer <token>

In: header

Query Parameters

search?string

A few letters of the place's name, in any of its languages.

page?integer

Zero-based page index.

Formatint32
Range0 <= value
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200

Response Body

*/*

*/*

curl -X GET "https://example.com/referential/v1/topographic-places"
{  "data": [    {      "ancestors": [        {          "id": "string",          "kind": {            "code": "string",            "level": 0,            "name": "string"          },          "name": "string"        }      ],      "id": "string",      "kind": {        "code": "string",        "level": 0,        "name": "string"      },      "latitude": 0.1,      "longitude": 0.1,      "name": "string",      "names_by_locale": {        "property1": "string",        "property2": "string"      },      "source_codes": [        {          "code": "string",          "source": "string"        }      ]    }  ],  "page": 0,  "size": 0,  "total": 0}