Package-level declarations

Types

Link copied to clipboard
@Serializable
data class MatrixRequest(val locations: List<List<Double>>, val destinations: List<Int>? = null, val id: String? = null, val metrics: List<String>? = null, val resolveLocations: Boolean? = null, val sources: List<Int>? = null)

Represents a request for the matrix service.

Link copied to clipboard

Builder used by matrixRequest.

Link copied to clipboard

Java-friendly builder counterpart.

Link copied to clipboard
@Serializable
data class MatrixResponse(val durations: List<List<Double>>? = null, val distances: List<List<Double>>? = null, val sources: List<MatrixWaypoint>? = null, val destinations: List<MatrixWaypoint>? = null, val metadata: Metadata? = null)

Represents the response from an ORS Matrix API request.

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

Represents a waypoint used in the ORS Matrix API response, providing details about a specific location.

Functions

Link copied to clipboard

DSL for building MatrixRequest instances.