MatrixRequest

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

Constructors

Link copied to clipboard
constructor(locations: List<List<Double>>, destinations: List<Int>? = null, id: String? = null, metrics: List<String>? = null, resolveLocations: Boolean? = null, sources: List<Int>? = null)

Properties

Link copied to clipboard
val destinations: List<Int>? = null

Optional. A list of indices that refers to the list of locations (starting with 0).

Link copied to clipboard
val id: String? = null

Optional. An arbitrary identification string of the request.

Link copied to clipboard

A list of coordinates as [longitude, latitude] pairs.

Link copied to clipboard
val metrics: List<String>? = null

Optional. Specifies a list of returned metrics.

Link copied to clipboard
@SerialName(value = "resolve_locations")
val resolveLocations: Boolean? = null

Optional. Specifies whether given locations are resolved or not.

Link copied to clipboard
val sources: List<Int>? = null

Optional. A list of indices that refers to the list of locations (starting with 0).