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

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Indicates whether some other object is "equal to" this one.
hashCode
Link copied to clipboard
open override fun hashCode(): Int
Returns a hash code value for the object.
toString
Link copied to clipboard
open override fun toString(): String
Returns a string representation of the object.

Properties

id
Link copied to clipboard
val id: String
id of the road object.
length
Link copied to clipboard
val length: Double?
length of the object, null if the object is point-like.
location
Link copied to clipboard
val location: RoadObjectLocation
location of the road object.
objectType
Link copied to clipboard
val objectType: Int
constant describing the object type, see RoadObjectType.
provider
Link copied to clipboard
val provider: String
provider of the road object

Inheritors

CountryBorderCrossing
Link copied to clipboard
Bridge
Link copied to clipboard
Custom
Link copied to clipboard
Incident
Link copied to clipboard
RailwayCrossing
Link copied to clipboard
RestrictedArea
Link copied to clipboard
RestStop
Link copied to clipboard
TollCollection
Link copied to clipboard
Tunnel
Link copied to clipboard