MatrixWaypoint

@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.

Constructors

Link copied to clipboard
constructor(location: List<Double>, name: String? = null, snappedDistance: Double? = null)

Properties

Link copied to clipboard

The coordinates of the waypoint as a list of longitude, latitude.

Link copied to clipboard
val name: String? = null

An optional name associated with the waypoint, which ORS may include.

Link copied to clipboard
@SerialName(value = "snapped_distance")
val snappedDistance: Double? = null

The distance in meters from the input coordinate to the snapped network coordinate. This is an optional extra that ORS may include.