Lokate
Documentation

API reference

A clean REST API for address autocomplete, geocoding and distance. Authenticate with your secret key, then call any endpoint.

Authentication

Pass your API key in the x-api-key header on every request. Each call draws from your wallet balance.

curl "https://api.uselokate.com/v1/autocomplete?query=Lekki&country=NG" \
  -H "x-api-key: mak_live_xxxxxxxx"

Endpoints

GET/v1/autocomplete

Address suggestions as the user types.

Params: query (required), country

GET/v1/place/:placeId

Full structured address + lat/lng for a selected suggestion.

Params: placeId (path)

GET/v1/reverse-geocode

Coordinates → human-readable address.

Params: lat (required), lng (required)

POST/v1/distance

Road distance + ETA between two points.

Params: origin {lat,lng}, destination {lat,lng}

Try it live

Paste an API key from your dashboard and make a real request.

Enter an API key from your dashboard to try it live.

GET /v1/autocomplete?query=&country=
// response will appear here