StreetElement

class StreetElement(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance, val cityDistrict: String, val cityBlock: String, val streetName: String, val roadNumbers: List<String>, val neighborhood: String) : HorizonElement

Horizon element that contains data about a street.

To receive such elements in the horizon snapshot, specify StreetElementType in the horizon options that you register with the horizon engine:

val horizonOptions = HorizonOptions(
elementTypes = listOf(StreetElementType, ...),
...
)

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

Constructors

Link copied to clipboard
constructor(id: Int, pathId: Int, startOffset: Distance, endOffset: Distance, cityDistrict: String, cityBlock: String, streetName: String, roadNumbers: List<String>, neighborhood: String)

Properties

Link copied to clipboard

City block. Empty string if not available.

Link copied to clipboard

City district. Empty string if not available.

Link copied to clipboard
open override val endOffset: Distance

End offset on the horizon path.

Link copied to clipboard
open override val id: Int

Identifier of this element.

Link copied to clipboard

Neighborhood name. Empty string if not available.

Link copied to clipboard
open override val pathId: Int

Identifier of the horizon path to which this element belongs.

Link copied to clipboard

Road numbers ordered by priority, from the highest to the lowest. Empty list if not available.

Link copied to clipboard
open override val startOffset: Distance

Start offset on the horizon path.

Link copied to clipboard

Street name. Empty string if not available.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String