v1

latestOpenAPI 3.0.02026-07-241437122.4 KB
Routing

Nearest Service

Snaps a coordinate to the street network and returns the nearest n matches. Where coordinates only supports a single {longitude},{latitude} entry.

get/nearest/{profile}/{coordinates}

Query parameters

bearingsstring

Limits the search to segments with given bearing in degrees towards true north in clockwise direction. List of positive integer pairs separated by semi-colon and bearings array should be equal to length of coordinate array. Accepted Value :- {bearing};{bearing}[;{bearing} ...] Each {bearing} follows the following format: {value},{range} integer 0 .. 360,integer 0 .. 180

radiusesstring

Limits the search to given radius in meters Radiuses array length should be same as coordinates array, each value separated by semi-colon. Accepted Value - {radius};{radius}[;{radius} ...] Each {radius} has following format: double >= 0 or unlimited (default)

hintsstring

Hint from previous request to derive position in street network. Accepted value: {hint};{hint}[;{hint} ...]

numberinteger

Number of nearest segments that should be returned. Accepted value: integer >= 1 (default 1)

Response

OK

codestring

If the request was successful Ok otherwise see the service dependent and general status codes.