IsochronesRequest

@Serializable
data class IsochronesRequest(val locations: List<List<Double>>, val range: List<Int>, val rangeType: String? = null, val attributes: List<String>? = null, val id: String? = null, val intersections: Boolean? = null, val interval: Int? = null, val locationType: String? = null, val smoothing: Double? = null, val options: IsochronesOptions? = null)

ORS Isochrones request Docs: /v2/isochrones/{profile}

Required: locations, range Optional are nullable and omitted from JSON when null.

Constructors

Link copied to clipboard
constructor(locations: List<List<Double>>, range: List<Int>, rangeType: String? = null, attributes: List<String>? = null, id: String? = null, intersections: Boolean? = null, interval: Int? = null, locationType: String? = null, smoothing: Double? = null, options: IsochronesOptions? = null)

Properties

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

e.g. "area" (see docs for more)

Link copied to clipboard
val id: String? = null

Optional request id that is echoed back in metadata

Link copied to clipboard
val intersections: Boolean? = null

If true, include intersection info in response

Link copied to clipboard
val interval: Int? = null

If set, returns multiple bands every interval (same unit as range_type)

Link copied to clipboard

lon, lat pairs

Link copied to clipboard
@SerialName(value = "location_type")
val locationType: String? = null

"start" (default) or "destination"

Link copied to clipboard

Extra tweaks

Link copied to clipboard
val range: List<Int>

In seconds for range_type="time" (default) or in meters for "distance".

Link copied to clipboard
@SerialName(value = "range_type")
val rangeType: String? = null

"time" (default) or "distance"

Link copied to clipboard
val smoothing: Double? = null

Smoothing factor, e.g. 25