RegionElement
class RegionElement(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance, val country: String, val subCountry: String) : HorizonElement
Horizon element that contains data about a region.
To receive such elements in the horizon snapshot, specify RegionElementType in the horizon options that you register with the horizon engine:
val horizonOptions = HorizonOptions(
elementTypes = listOf(RegionElementType, ...),
...
)Content copied to clipboard
Important: This is a Public Preview API. It may be changed or removed at any time.
Constructors
Properties
Link copied to clipboard
End offset on the horizon path.
Link copied to clipboard
Identifier of the horizon path to which this element belongs.
Link copied to clipboard
Start offset on the horizon path.
Link copied to clipboard
Name of the state/province/region. Empty string if no sub-country is assigned to the corresponding part of the path.