Region

data class Region(    val id: Int,     val pathId: Int,     val startOffset: Distance,     val endOffset: Distance,     val country: String,     val subCountry: String) : HorizonElement

Describes a region on the horizon element.

Parameters

id

Identifier of this element.

pathId

Identifier of the path this element belongs to.

startOffset

Start offset on the path.

endOffset

End offset on the path.

country

Country name. Empty string if no country is assigned to the part of the path.

subCountry

State/province/region name. Empty string if no sub-country is assigned to the part of the path.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun Region(    id: Int,     pathId: Int,     startOffset: Distance,     endOffset: Distance,     country: String,     subCountry: String)

Properties

Link copied to clipboard
val country: String
Link copied to clipboard
open override val endOffset: Distance
Link copied to clipboard
open override val id: Int
Link copied to clipboard
open override val pathId: Int
Link copied to clipboard
open override val startOffset: Distance
Link copied to clipboard
val subCountry: String