- Home
- Docs
- API reference
- Addresses and admin areas for up to 100 coordinates
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
https://api.wayline.cloud/v1/reverse-geocode/batchRequires 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.
| Field | Type | Description |
|---|---|---|
pointsrequired | Point[] | |
lang | string | One of: en, bn |
types | string[] | |
radius_meters | integer |
Response
200 — One result per input point, in input order.
| Field | Type | Description |
|---|---|---|
resultsrequired | object[] | |
units_chargedrequired | integer |
Response headers
X-Request-Id— Unique identifier for tracking and debugging this request.X-Units-Charged— Billable request units consumed by this request.
Errors
| Status | When |
|---|---|
400 | Bad request (invalid coordinates, out of coverage, too many elements, etc.). |
401 | Missing or invalid API key, or expired key. |
402 | Free 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. |
403 | Account disabled, key IP restriction failed, origin not allowed, or scope not permitted. |
429 | Rate limit exceeded or test key daily quota reached. |
500 | Internal server error. |
503 | Upstream routing service temporarily unavailable. |
Error bodies contain a code such as OUT_OF_COVERAGE — see the error reference.
Try it
Interactive API Console
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.