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 UN/LOCODEs

Production
https://route-api.polestar-production.com
Production
https://route-api.polestar-production.com
POST
https://route-api.polestar-production.com
/v1/routes/by-unlocode
Resolves two UN/LOCODEs to ports, calculates the route between them, then creates it as a verified route.
Routing points are handled the same way as in POST /v1/routes/by-port.
If description is left out, it defaults to Route from <start> (<code>) to <end> (<code>).
Feature permission: create-route-by-unlocode

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-unlocode' \
--header 'Content-Type: application/json' \
--data '{
    "start_port_un_locode": "NLRTM",
    "end_port_un_locode": "SGSIN",
    "description": "Rotterdam to Singapore",
    "routing_points_to_open": [
        "SUZ"
    ]
}'
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": "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 between two port names
Next
Create a voyage
Built with