Skip to content

Insert optimization legs

POST
/optimization/legs

Insert pre-calculated route legs with travel times into an optimization

object
id
required

Optimization job ID

string
legs
required

Array of route legs with travel times

Array<object>
object
start_location_id
required

ID of the starting location

string
end_location_id
required

ID of the ending location

string
time
required

Travel time in minutes between locations

number

Legs inserted