MaritimeplatformoperationId crossings
GET/v1/crossings
Zone entries, exits and dwells along a vessel's track, against the maritime zone layers.
Send Authorization: Bearer sk_live_…. The key's plan must include theplatform product; which plans do.
Explained in Zone crossings.
Example
Zones a vessel entered and left.
curl -G "https://api.oslew.com/v1/crossings" \
-H "Authorization: Bearer $GEO_API_KEY" \
--data-urlencode 'mmsi=366749490' \
--data-urlencode 'zones=maritime'from oslew import Client
# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")
answer = client.crossings(366749490, zones="maritime")import { Client } from "@oslew/client";
// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });
const answer = await client.crossings(366749490, { zones: "maritime" });HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 291
ratelimit-reset: 1
{
"mmsi": 366749490,
"from": 1735603200,
"to": 1735689600,
"positions": 359,
"layers": 1,
"crossings": [
{
"zone": 61,
"name": "México",
"subtype": "country",
"entered": true,
"at_start": false,
"time": 1735610513,
"lat": 31.30892,
"lon": -116.75186
},
{
"zone": 61,
"name": "México",
"subtype": "country",
"entered": false,
"at_start": false,
"time": 1735638472,
"lat": 32.53099,
"lon": -117.20863
},
{
"zone": 75,
"name": "United States",
"subtype": "country",
"entered": true,
"at_start": false,
"time": 1735638472,
"lat": 32.53099,
"lon": -117.20863
}
],
"dwells": [
{
"zone": 61,
"name": "México",
"subtype": "country",
"from": 1735610513,
"to": 1735638353,
"positions": 114,
"open": false
},
{
"zone": 75,
"name": "United States",
"subtype": "country",
"from": 1735638472,
"to": 1735689548,
"positions": 241,
"open": true
}
],
"provenance": {
"name": "noaa-ais",
"release": "2024-12-31",
"license": "public domain (US Government work)"
},
"took_us": 12453
}A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
Query
| Name | Type | Description |
|---|---|---|
mmsiqueryrequired | integer | |
fromquery | integer | |
toquery | integer | |
zonesquery | string maritime | all default maritime | all evaluates every divisions layer: countries, regions, time zones. |
Responses
200 — Crossings by time, dwells by start.
crossingsCrossing[]requiredat_startbooleanrequiredThe entry is the track's first fix: the vessel began inside.enteredbooleanrequiredlatnumberrequiredlonnumberrequirednamestringrequiredsubtypestringrequiredtimeintegerrequiredzoneintegerrequired
dwellsDwell[]requiredfromintegerrequirednamestringrequiredopenbooleanrequiredThe track ended inside;tois the last fix.positionsintegerrequiredsubtypestringrequiredtointegerrequiredzoneintegerrequired
fromintegerrequiredlayersintegerrequiredmmsiintegerrequiredpositionsintegerrequiredprovenanceSource | nullrequiredlicensestringrequirednamestringrequiredreleasestringrequired
tointegerrequiredtook_usintegerrequired
With RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset(and their X-RateLimit-* aliases); see rate limits.
Refusals
Every refusal is a JSON object with an error string, except where noted.
| 400 | Bad request. |
| 401 | No key, or one that is unknown, revoked or suspended. |
| 403 | The key's plan does not include this route's product, or the request is larger than the plan allows. The body names the plan that does. |
| 429 | This product's bucket is empty: the key is going faster than its plan's sustained rate. Wait Retry-After seconds; nothing is used up. Carries Retry-After. |
| 503 | The pod cannot reach the control plane and its entitlements are too old to trust. Retry. |
A malformed query string or JSON body is refused by the framework before this route runs, in plain text rather than JSON; see errors.
Rendered from the OpenAPI document at commit b8f4bde-dirty; the same document is served at/v1/openapi.json and generates both clients.