Documentation menu
Search docs…⌘K

API reference

Addresses and admin areas for up to 100 coordinates

Reverse geocodes up to 100 points in one request, e.g. a rep's check-ins for the day. Each point gets its closest place and its administrative areas. Billed as one `reverse_geocode` unit per point inside coverage; out-of-coverage points are returned with status `OUT_OF_COVERAGE` and not billed.

Endpoint

POSThttps://api.wayline.cloud/v1/reverse-geocode/batch
Bearer Auth

Requires an API key (authentication). Product overview: Batch Reverse Geocoding API. Billing: see units & pricing.

Request body

JSON object (ReverseBatchRequest). Points accept "lat,lng" strings, {lat, lng} objects or [lat, lng] arrays.

Request body fields
FieldTypeDescription
pointsrequiredPoint[]
langstringOne of: en, bn
typesstring[]
radius_metersinteger

Response

200 — One result per input point, in input order.

Response fields
FieldTypeDescription
resultsrequiredobject[]
units_chargedrequiredinteger

Response headers

  • X-Request-Id — Unique identifier for tracking and debugging this request.
  • X-Units-Charged — Billable request units consumed by this request.

Errors

StatusWhen
400Bad request (invalid coordinates, out of coverage, too many elements, etc.).
401Missing or invalid API key, or expired key.
402Free quota exhausted, no payment method, account suspended, or the monthly spend limit you set was reached. Never billed. Raise or remove the limit in the dashboard (Billing) and retry; nothing else changes.
403Account disabled, key IP restriction failed, origin not allowed, or scope not permitted.
429Rate limit exceeded or test key daily quota reached.
500Internal server error.
503Upstream routing service temporarily unavailable.

Error bodies contain a code such as OUT_OF_COVERAGE — see the error reference.

Try it

Interactive API Console

POST /v1/reverse-geocode/batch

Sends a real request from your browser using a test key (free, never billed). The key stays in this browser tab only.

No key yet? Create a free test key.

Was this page helpful?