Package-level declarations

Types

Link copied to clipboard
@Serializable
data class SnapFeature(val type: String, val properties: SnapProperties, val geometry: SnapGeometry)

A GeoJSON Feature with snapped location info

Link copied to clipboard
@Serializable
data class SnapGeoJsonResponse(val type: String, val features: List<SnapFeature>, val metadata: Metadata, val bbox: List<Double>? = null)

Snap response in GeoJSON format

Link copied to clipboard
@Serializable
data class SnapGeometry(val type: String, val coordinates: List<Double>)
Link copied to clipboard
@Serializable
data class SnapLocation(val location: List<Double>, val name: String? = null, val snappedDistance: Double)

One snapped input coordinate.

Link copied to clipboard
@Serializable
data class SnapProperties(val name: String? = null, val snappedDistance: Double, val sourceId: Int)
Link copied to clipboard
@Serializable
data class SnapRequest(val locations: List<List<Double>>, val radius: Int, val id: String? = null)

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

Link copied to clipboard

Builder used by snapRequest.

Link copied to clipboard

Java-friendly builder counterpart.

Link copied to clipboard
@Serializable
data class SnapResponse(val locations: List<SnapLocation>, val metadata: Metadata)

Response for ORS /v2/snap/{profile}/json

Functions

Link copied to clipboard

DSL for constructing SnapRequest objects.