RoadObject

abstract class RoadObject

Abstract class that serves as a base for all road objects. There are two sources of road objects: active route and the electronic horizon. Objects coming from different sources might be duplicated and they will not have the same IDs.

Parameters

id

id of the road object. If we get the same objects (e.g. RoadObjectType.TUNNEL) from the electronic horizon and the active route, they will not have the same IDs.

length

length of the object, null if the object is point-like.

provider

provider of the road object

Functions

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

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
val length: Double?
Link copied to clipboard
val location: RoadObjectLocation
Link copied to clipboard
val objectType: Int
Link copied to clipboard
val provider: String

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard