SnapRequest

@Serializable
data class SnapRequest(val locations: List<List<Double>>, val radius: Int, val id: String? = null)

Snap request for ORS /v2/snap/{profile}/json

Parameters

locations

List of lon, lat coordinates to snap.

radius

Maximum radius (meters) around given coordinates to search for graph edges.

id

Optional client-provided identifier.

Constructors

Link copied to clipboard
constructor(locations: List<List<Double>>, radius: Int, id: String? = null)

Properties

Link copied to clipboard
val id: String? = null
Link copied to clipboard
Link copied to clipboard
val radius: Int