Skip to main content
GET
Solve the traveling salesman problem for the given coordinates

Authorizations

Authorization
string
header
required

API key created in the JustRouting dashboard.

Path Parameters

profile
enum<string>
required
Available options:
driving,
motorcycle
coordinates
string
required

Query Parameters

roundtrip
boolean
default:true
source
enum<string>
default:any
Available options:
any,
first
destination
enum<string>
default:any
Available options:
any,
last
steps
boolean
default:false

Return turn-by-turn steps.

geometries
enum<string>
default:polyline

Geometry encoding of the response.

Available options:
polyline,
polyline6,
geojson
overview
enum<string>
default:simplified

How much route geometry to return.

Available options:
full,
simplified,
false,
by_legs
bearings
string

{bearing},{range};... per coordinate, e.g. 0,20 = north ±20°.

radiuses
string

Snapping radius in meters per coordinate, or unlimited.

hints
string

Base64 hints from a previous response to speed up snapping.

approaches
string

Restrict the road direction at each waypoint: curb / opposite / unrestricted (default), e.g. curb;opposite.

exclude
string

Road classes to avoid (additive list), e.g. motorway.

snapping
enum<string>
default:default

default avoids edges that cannot be used as start/end points; any snaps to any edge in the graph.

Available options:
default,
any
generate_hints
boolean
default:true

Add a hint to response waypoints for reuse in later requests.

skip_waypoints
boolean
default:false

Remove waypoints from the response (still calculated, not serialized).

annotations
string

Per-coordinate metadata: true, or a comma list of distance, duration, speed, weight, nodes, datasources.

Response

Trip found

code
enum<string>
Available options:
Ok
waypoints
object[]
trips
object[]