City

data class City(    val id: Int,     val pathId: Int,     val startOffset: Distance,     val endOffset: Distance,     val name: String) : HorizonElement

Describes a city.

Constructors

Link copied to clipboard
fun City(    id: Int,     pathId: Int,     startOffset: Distance,     endOffset: Distance,     name: String)

Creates a City horizon element.

Properties

Link copied to clipboard
open override val endOffset: Distance
Link copied to clipboard
open override val id: Int

Identifier of this element.

Link copied to clipboard
val name: String

City name.

Link copied to clipboard
open override val pathId: Int

Identifier of the path this element belongs to.

Link copied to clipboard
open override val startOffset: Distance

Start offset on the path.