Autocomplete UK street names by prefix. Supports postcode-district filtering for more relevant results. Returns coordinates and administrative area data.
/v1/street/<query>https://autocomplete.namedone.com1import { createClient } from "@namedone/autocomplete"23const nd = createClient("nd_...")4const { results } = await nd.streets("high")1# Exchange your API key for a token2curl -X POST https://token.namedone.com/v1 \3 -H "Content-Type: application/json" \4 -d '{"apiKey":"nd_..."}'56# Query the streets endpoint7curl "https://autocomplete.namedone.com/v1/street/high?token=<jwt>"{ "results": [ { "id": "street-0", "text": "High Street", "subtitle": "London, SW1A", "type": "street" "data": { "postcodeDistrict": <string>, "populatedPlace": <string>, "districtBorough": <string>, "county": <string>, "country": <string>, "lat": <number>, "lng": <number> } } ], "query": "high"}| Field | Type | Description |
|---|---|---|
| postcodeDistrict | string | Postcode outward code (e.g. "SW14") |
| populatedPlace | string | Nearest populated place (e.g. "London") |
| districtBorough | string | District or borough name |
| county | string | County or unitary authority |
| country | string | England, Scotland, or Wales |
| lat | number | WGS84 latitude |
| lng | number | WGS84 longitude |
Sent as query string parameters on the HTTP request to the API.
| Parameter | Type | Default | Description |
|---|---|---|---|
| token | string | — | JWT obtained from the token API. Required for authentication. |
Passed to the SDK methods (e.g. firstNames(query, opts)). These are processed client-side and never sent to the API.
| Option | Type | Default | Description |
|---|---|---|---|
| limit | number | 10 | Maximum number of results (1–50). Applied client-side by the SDK. |
| simple | boolean | false | Simplify response: deduplicate by text and strip to {text, type}. |
| sortByProximity | array | — | Sort results by proximity to coordinates. Client-side only. |
| postcode | string | — | Postcode district for filtered search. Client-side only. |
Query: high
{ "results": [ { "id": "street-0", "text": "High Street", "subtitle": "London, SW1A", "type": "street" }, { "id": "street-1", "text": "High Road", "subtitle": "Manchester, M1", "type": "street" }, { "id": "street-2", "text": "Highfield Road", "subtitle": "Birmingham, B1", "type": "street" } ], "query": "high"}Query: pem
{ "results": [ { "id": "street-0", "text": "Pembroke Gardens", "subtitle": "London, SW14", "type": "street" }, { "id": "street-1", "text": "Pembroke Road", "subtitle": "Bristol, BS1", "type": "street" } ], "query": "pem"}