Natural Language Endpoints
The natural language endpoints accept unstructured input and return structured geospatial results. Send plain text or messy address data, get back clean coordinates, routes, and corrected addresses.Endpoints
| Endpoint | Description |
|---|---|
POST /v1/ai/query | Natural language to structured geospatial results. Send text like “Walking route from Kings Cross to Tower Bridge” and get back a route. |
POST /v1/ai/parse-address | Correct, standardize, and structure messy addresses. Fixes typos, expands abbreviations, infers missing fields. |
Route narratives
The standard route and optimise endpoints also support natural language summaries. Passnarrative: true to get a human-readable description of the route:
narrative field:
Authentication
All endpoints require an API key via thex-api-key header. See the authentication guide for details.