Skip to main content
GET
Snap a single coordinate to the nearest routable segments

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

A single {lng},{lat} pair.

Query Parameters

number
integer
default:1

Number of nearest segments to return.

Required range: x >= 1
bearings
string

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

Response

Snapped segments

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