AI Endpoints
The AI endpoints accept unstructured input and return structured geospatial results. Send natural language or messy address data, get back clean coordinates, routes, and corrected addresses.How it works
AI endpoints use large language models to understand your input, then call the appropriate routing or geocoding backend. You get the same structured responses as the standard endpoints, plus a natural language summary and metadata about what was inferred.Endpoints
| Endpoint | Description |
|---|---|
POST /query | Natural language to structured geospatial results. Send text like “Walking route from Kings Cross to Tower Bridge” and get back a route. |
POST /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 AI-generated summaries. Passnarrative: true to get a human-readable description of the route:
narrative field:
Authentication
All AI endpoints require an API key via thex-api-key header, same as every other endpoint. See the authentication guide for details.
Latency
AI endpoints add latency compared to standard endpoints because they involve LLM processing:/query: 1-3 seconds (intent classification + geocoding + backend call + summary generation)/parse-address: 1-2 seconds for small batches, up to 10 seconds for 100 addressesnarrative: trueon route endpoints: adds ~500ms to the standard response time