Look up transport methods
Each leg requires a transport methodpublicId (trn_ prefix). Fetch the available methods from GET /v1/logistics/methods and save the ones you need.
The available methods are:
Create a route
Call POST /v1/logistics/routes with two locationpublicIds (trl_ prefix) from the locations step.
Route legs
Each route requires at least one leg intransportRouteLegs. For multi-leg routes, add additional objects with incrementing order values.
type determines which leg fields are relevant:
emptyReturnFactor only applies to DirectTrip.