> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maalbar.dk/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Routes

> Define the transport legs between your locations.

Routes connect two locations and describe how goods travel between them. A route consists of one or more legs, each with a transport mode and distance.

## Look up transport methods

Each leg requires a transport method `publicId` (`trn_` prefix). Fetch the available methods from [GET /v1/logistics/methods](/api-reference/methods/get-all-methods) and save the ones you need.

The available methods are:

| Mode | Methods                                                                                                                        |
| :--- | :----------------------------------------------------------------------------------------------------------------------------- |
| Road | Lorry >32t (standard), Lorry 28–32t, Lorry 20–26t, Lorry 14–20t, Lorry 12–14t, Lorry 7.5–12t, Lorry \<7.5t, Van, Passenger car |
| Sea  | Container ship (heavy fuel), Container ship (Eco-fuel), Ferry, Barge                                                           |
| Rail | Train – unknown, Train – diesel, Train – electric                                                                              |
| Air  | Cargo plane                                                                                                                    |

## Create a route

Call [POST /v1/logistics/routes](/api-reference/routes/create-a-route) with two location `publicId`s (`trl_` prefix) from the [locations step](/developer/quickstart/locations).

## Route legs

Each route requires at least one leg in `transportRouteLegs`. For multi-leg routes, add additional objects with incrementing `order` values.

`type` determines which leg fields are relevant:

| Type                 | Fields                                                                      |
| :------------------- | :-------------------------------------------------------------------------- |
| `ContainerFullLoad`  | `method`, `distance`, `isCargoLoadedOnPallets`, `note`                      |
| `FreightPartialLoad` | `method`, `distance`, `isCargoLoadedOnPallets`, `note`                      |
| `DirectTrip`         | `method`, `distance`, `emptyReturnFactor`, `isCargoLoadedOnPallets`, `note` |

`emptyReturnFactor` only applies to `DirectTrip`.

## Next

[Create a Screening →](/developer/quickstart/screening)
