AI Integrations
Search Locations (AI)
Search sailing destinations with diacritics-safe matching and boat counts
GET
/ai/locationsSearch for charter bases, marinas, islands, and cities. Uses normalized matching that handles diacritics and special characters. Returns locations with boat counts.
Authentication
No authentication required. Rate limited to 60 requests per 10 minutes.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search query (minimum 2 characters). Marina name, city, island, or country. |
limit | integer | No | Max results (default: 5, max: 20) |
Request
Response
Response Fields
| Field | Type | Description |
|---|---|---|
locations | array | Matching locations |
locations[].id | number | Location ID |
locations[].name | string | Location name |
locations[].city | string|null | City |
locations[].country | string|null | Country |
locations[].type | string | Location type: marina, harbour, anchorage, etc. |
locations[].lat | number | Latitude |
locations[].lon | number | Longitude |
locations[].boat_count | integer | Number of published boats at this location |
locations[].url | string | Link to location page on charter.boats |
Errors
| Status | Message |
|---|---|
400 | Search query must be at least 2 characters |