Developer Portal
InsightsPurpleTRACMTI
Podium
Podium
  • Metric I/O
  • Route Optimisation
Other
Other
  • Weather
InsightsPurpleTRACMTI
Podium
Podium
  • Metric I/O
  • Route Optimisation
Other
Other
  • Weather
  1. Routes
  • Podium Route Optimisation
  • Authentication
    • Sign in
      POST
    • Refresh the access token
      PUT
  • Ports
    • Get ports by name
      GET
    • Get ports near a position
      GET
  • Routing Points
    • Get all routing points
      GET
  • Routes
    • Create a route from waypoints
      POST
    • Create a route between two port names
      POST
    • Create a route between two UN/LOCODEs
      POST
  • Voyages
    • Create a voyage
      POST
    • Get vessel models
      GET
    • Get a voyage
      GET
    • Start the voyage calculation
      GET
    • Get the voyage computation
      GET
    • Get the optimised routes
      GET
    • Export an optimised route
      GET
  • Schemas
    • PodiumRoutesMetaInfo
    • PodiumRoutesError
    • PodiumRoutesAuthError
    • PodiumRoutesValidationProblem
    • PodiumRoutesSignInRequest
    • PodiumRoutesSignInResponse
    • PodiumRoutesRefreshTokenRequest
    • PodiumRoutesRefreshTokenResponse
    • PodiumRoutesPort
    • PodiumRoutesPortByLocation
    • PodiumRoutesRoutingPoint
    • PodiumRoutesRouteLeg
    • PodiumRoutesRoutePoint
    • PodiumRoutesRouteRequest
    • PodiumRoutesRouteByPortRequest
    • PodiumRoutesRouteByUnLocodeRequest
    • PodiumRoutesRouteResponse
    • PodiumRoutesVoyageConstraints
    • PodiumRoutesVoyageFuel
    • PodiumRoutesVoyageTweaks
    • PodiumRoutesVoyageArrivalWindow
    • PodiumRoutesVoyageCustomAreas
    • PodiumRoutesVoyageValidator
    • PodiumRoutesVoyageTimeWindow
    • PodiumRoutesVoyageStops
    • PodiumRoutesVoyageLinkedResource
    • PodiumRoutesVoyageDataFeeds
    • PodiumRoutesVoyageSavings
    • PodiumRoutesVoyageOptions
    • PodiumRoutesVoyageRequest
    • PodiumRoutesVesselPosition
    • PodiumRoutesVoyage
    • PodiumRoutesVoyageResponse
    • PodiumRoutesComputationResponse
    • PodiumRoutesRouteVariant
    • PodiumRoutesRouteFeatures
    • PodiumRoutesComputedRoutesResponse
    • PodiumRoutesVesselModel
    • PodiumRoutesVesselModelsResponse
  1. Routes

Create a route between two port names

Production
https://route-api.polestar-production.com
Production
https://route-api.polestar-production.com
POST
https://route-api.polestar-production.com
/v1/routes/by-port
Calculates a route between two ports given by name, then creates it as a verified route. The response holds
the calculated waypoints and the route_id.
Routing points: if routing_points_to_open or routing_points_to_close is left out or empty, the default
set for that list is used. A list you send replaces the default set for that list. Every code must be a
known routing point (see GET /v1/routingPoints), and a code must not appear in both lists.
To open a point that is closed by default (for example KIE), also send routing_points_to_close with
every default-closed point except that one. If you leave the close list out, the default close list is
applied and the point ends up in both lists. To close a point that is open by default (for example SUZ),
likewise send routing_points_to_open with every default-open point except that one. Use the
default_state from GET /v1/routingPoints to build the lists.
The description you send is ignored. The route is always described as Route from <start> to <end>.
Feature permission: create-route-by-port

Request

Authorization
Body Params application/jsonRequired

Examples

Responses

🟢201Created
application/json
Route calculated and created.
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠422Parameter Error
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://route-api.polestar-production.com/v1/routes/by-port' \
--header 'Content-Type: application/json' \
--data '{
    "start_port_name": "Rotterdam",
    "end_port_name": "Singapore",
    "routing_points_to_open": [
        "SUZ"
    ],
    "routing_points_to_close": [
        "PAN"
    ]
}'
Response Response Example
201 - Success Example
{
    "meta": {
        "request_id": "2f6b1c7e-9a3d-4e58-b1f2-6c7d8e9f0a1b",
        "request_timestamp": "2026-11-05T10:15:30.1234567Z"
    },
    "data": {
        "route_id": "9e8d7c6b-5a49-4382-a1b0-c9d8e7f6a5b4",
        "description": "Route from Rotterdam to Singapore",
        "verified": true,
        "tag": null,
        "route_points": [
            {
                "latitude": 51.95,
                "longitude": 4.14,
                "position": 0,
                "leg": {
                    "type": "Loxodrome"
                },
                "tag": null,
                "port_codes": null,
                "type": "soft"
            },
            {
                "latitude": 1.26,
                "longitude": 103.84,
                "position": 1,
                "leg": {
                    "type": "Loxodrome"
                },
                "tag": null,
                "port_codes": null,
                "type": "soft"
            }
        ]
    }
}
Modified at 2026-11-16 11:06:47
Previous
Create a route from waypoints
Next
Create a route between two UN/LOCODEs
Built with