Find Best Insertion Positions

Synchronously find the best positions to insert a new destination into existing routes. Evaluates candidate routes and positions and returns the list of best insertion options inline.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
float
required

Latitude of the new destination.

float
required

Longitude of the new destination.

date

Date (YYYY-MM-DD) used to find candidate routes when route ids are not supplied. Required without route_ids.

route_ids
array of strings

Explicit list of route identifiers to consider.

route_ids
string
enum
Defaults to optimal_after_last_visited

Where the new destination may be inserted.

Allowed:
string
enum
Defaults to distance

Metric used to rank insertion options.

Allowed:
integer

Maximum number of candidate routes to evaluate when route ids are not provided.

number

Upper bound on how much a route distance or duration may grow when inserting the new destination.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json