Calculate sea route between two points
Changed onCalculates the optimal navigable sea route between two points. Each endpoint can be given as coordinates, a port UUID, or a port UN/LOCODE. Returns a GeoJSON LineString with waypoints and the total distance in nautical miles.
Uses the extended base URL https://api.datalastic.com/api/ext/.
Credit cost: 1 credit per request. Requires an Add-Ons plan tier.
Request
- Base URLhttps://api.datalastic.com
- Auth
- API key in header x-api-key
- or API key in query parameter api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Origin port UN/LOCODE (alternative to lat_from/lon_from).
Origin port UUID (alternative to lat_from/lon_from).
Origin latitude.
Origin longitude.
Destination port UN/LOCODE (alternative to lat_to/lon_to).
Destination port UUID (alternative to lat_to/lon_to).
Destination latitude.
Destination longitude.
Response
Calculated route with waypoints and total distance.
Example response
{
"meta": {
"duration": 0.012,
"endpoint": "/api/v0/vessel",
"success": true,
"next": "00e32b7a-4067-d6b2-8d73-2bdda4fe72bb"
}
}Changes
- warning
deleted the
queryrequest parameterapi-key - info
added the new optional
queryrequest parameterport_uuid_from - info
added the new optional
queryrequest parameterport_uuid_to - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
/to the response with the status
- warning
- info
endpoint added
- info