API reference
Address search
GET /address_whisper
The primary autocomplete endpoint. Pass whatever the user has typed in s and
get back ranked, deduplicated address suggestions. Provide country to scope
results and lon/lat to bias them toward a location.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
s | string | yes | The search string (whatever the user has typed). |
country | string | ISO 3166-1 alpha-2 country code to scope the search. Case-insensitive. | |
lon | number | WGS-84 longitude of the location bias. Nearby results rank first. | |
lat | number | WGS-84 latitude of the location bias. | |
apiKey | string | yes | Your API key. |
Up to 10 results
The endpoint returns at most 10 suggestions, already ordered by relevance and
distance to the lon/lat bias (when provided).
Request
cURL
Code(bash)
JavaScript
Code(js)
Response
200 OK — an array of result objects.
Code(json)
Result object
| Field | Type | Description |
|---|---|---|
label | string | Human-readable, display-ready address. |
value | string | Same as label; convenient for autocomplete inputs. |
lon | number | WGS-84 longitude. |
lat | number | WGS-84 latitude. |
street | string | Aggregated street incl. number, e.g. "Národní 223/2". |
city | string | Aggregated city (may include district). |
postcode | string | Postal code. |
country | string | ISO 3166-1 alpha-2 country code. |
details | object | Structured address breakdown (see below). |
details object
| Field | Type | Description |
|---|---|---|
housenumber | string | House number (číslo popisné). |
orientationnumber | string | Orientation number (číslo orientační). |
street | string | Street name only. |
city | string | City name. |
district | string | District / quarter. |
postcode | string | Postal code. |
municipality | string | Municipality. |
province | string | Province / region. |
county | string | County. |
state | string | State. |
country | string | ISO 3166-1 alpha-2 country code. |
Empty results
An empty array [] means no matches were found. The API also returns 200
with [] if the request is cancelled by the client. See Errors.
Last modified on
