Locations
Search Locations
Typeahead search for marinas, anchorages, and bays
Endpoint
Description
Fast typeahead search for locations (marinas, anchorages, bays). Uses normalized matching that handles special characters -- for example, searching "dalbora" matches "d'Albora Marina".
Returns a lightweight response suitable for autocomplete UIs.
Authentication
No authentication required. This is a public endpoint.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search query (minimum 2 characters) |
limit | number | No | Max results (default: 10, max: 20) |
Example Request
Example Response
Response Fields
| Field | Type | Description |
|---|---|---|
id | number | Location ID |
osm_id | number|null | OpenStreetMap node ID |
name | string | Location name |
lat | number | Latitude |
lon | number | Longitude |
city | string|null | City name |
state | string|null | State or region |
country | string|null | Country name |
harbour_category | string|null | Type of harbour (e.g. marina, harbour, anchorage) |
Notes
- Returns an empty array if
qis missing or shorter than 2 characters. - Results are ranked by search relevance.