Passages
Passages by Location
Get all passages departing from or arriving at a specific location
Endpoint
Description
Retrieve all sailing passages that either depart from or arrive at a specific location. Useful for showing "Sail from here" options on a location detail page.
Results are sorted by distance (shortest passages first).
Authentication
No authentication required. This is a public endpoint.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | Location ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | No | Max results (default: 20, max: 50) |
Example Request
Example Response
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Route ID (UUID) |
slug | string | URL slug |
title | string | Route title |
description | string|null | Route description |
distance_nm | number|null | Distance in nautical miles |
difficulty | string|null | Difficulty level |
typical_duration_hours | number|null | Estimated sailing time |
rating | number|null | Average rating |
rating_count | number|null | Number of ratings |
variant_count | number|null | Number of route variants |
geojson | object|null | Route geometry (GeoJSON LineString) |
from_location | object | Departure location |
from_location.id | number | Location ID |
from_location.name | string | Location name |
from_location.country_code | string | ISO country code |
to_location | object | Arrival location |
Notes
- Returns passages where the given location is either the departure or arrival point.
- Results are sorted by distance ascending (shortest passages first).
- Includes
geojsonroute geometry. Use Get Passage for full details including variants and POIs.