LaunifyLaunifyDocumentation
  • REST API
  • API reference
  • Reference
Address searchStructured searchReverse geocode
powered by Zudoku
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

ParameterTypeRequiredDescription
sstringyesThe search string (whatever the user has typed).
countrystringISO 3166-1 alpha-2 country code to scope the search. Case-insensitive.
lonnumberWGS-84 longitude of the location bias. Nearby results rank first.
latnumberWGS-84 latitude of the location bias.
apiKeystringyesYour 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)
curl -G 'https://api.polaris.launify.com/address_whisper' \ -H 'Referer: https://yourapp.com' \ --data-urlencode 's=Národní 223' \ --data-urlencode 'country=CZ' \ --data-urlencode 'lon=14.41' \ --data-urlencode 'lat=50.08' \ --data-urlencode 'apiKey=YOUR_API_KEY'

JavaScript

Code(js)
const url = new URL('https://api.polaris.launify.com/address_whisper'); url.searchParams.set('s', 'Národní 223'); url.searchParams.set('country', 'CZ'); url.searchParams.set('lon', '14.41'); url.searchParams.set('lat', '50.08'); url.searchParams.set('apiKey', 'YOUR_API_KEY'); const suggestions = await fetch(url).then((r) => r.json());

Response

200 OK — an array of result objects.

Code(json)
[ { "label": "Národní 223/2, Praha - Nové Město, 11000", "value": "Národní 223/2, Praha - Nové Město, 11000", "lon": 14.41346, "lat": 50.08125, "street": "Národní 223/2", "city": "Praha - Nové Město", "postcode": "11000", "country": "CZ", "details": { "housenumber": "223", "orientationnumber": "2", "street": "Národní", "city": "Praha", "district": "Nové Město", "postcode": "11000", "municipality": "", "province": "Středočeský kraj", "county": "Hlavní město Praha", "state": "", "country": "CZ" } } ]

Result object

FieldTypeDescription
labelstringHuman-readable, display-ready address.
valuestringSame as label; convenient for autocomplete inputs.
lonnumberWGS-84 longitude.
latnumberWGS-84 latitude.
streetstringAggregated street incl. number, e.g. "Národní 223/2".
citystringAggregated city (may include district).
postcodestringPostal code.
countrystringISO 3166-1 alpha-2 country code.
detailsobjectStructured address breakdown (see below).

details object

FieldTypeDescription
housenumberstringHouse number (číslo popisné).
orientationnumberstringOrientation number (číslo orientační).
streetstringStreet name only.
citystringCity name.
districtstringDistrict / quarter.
postcodestringPostal code.
municipalitystringMunicipality.
provincestringProvince / region.
countystringCounty.
statestringState.
countrystringISO 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 May 28, 2026
Structured search
On this page
  • Query parameters
  • Request
    • cURL
    • JavaScript
  • Response
    • Result object
    • details object