RoadElement

open class RoadElement : BaseNativeParcelable

Road element attribute classifications. Describes the nature of the road that a RoadElement is part of. A road element may only have one type, or none if the road is an unclassified type or the information is not available.

Types

Attribute
Link copied to clipboard
annotation class Attribute
Type
Link copied to clipboard
annotation class Type

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
open fun describeContents(): Int
For documentation, see android.os.Parcelable.describeContents().
equals
Link copied to clipboard
open fun equals(o: Any): Boolean
getAttributes
Link copied to clipboard
open fun getAttributes(): Set<Integer>
Returns set of attributes of the selected road.
getDistance
Link copied to clipboard
open fun getDistance(): Int
Returns the distance from start of route in meters.
getDuration
Link copied to clipboard
open fun getDuration(): Int
Returns he duration of RoadElement in seconds based on average speed.
getFrom
Link copied to clipboard
open fun getFrom(): GeoCoordinates
Returns from GeoCoordinates
getIso
Link copied to clipboard
open fun getIso(): String
Returns the country iso code in ISO 3166-2 format.
getLength
Link copied to clipboard
open fun getLength(): Int
Returns the length of RoadElement in meters.
getRoadName
Link copied to clipboard
open fun getRoadName(): String
Returns the name of the road element, or an empty string if the data is not available.
getRoadNumbers
Link copied to clipboard
open fun getRoadNumbers(): List<String>
Returns the numbers of the road element, or an empty list if the data is not available.
getSpeedLimit
Link copied to clipboard
open fun getSpeedLimit(): Int
Returns the speed limit of RoadElement in kmh, or 0 if the information is not available.
getTo
Link copied to clipboard
open fun getTo(): GeoCoordinates
Returns to GeoCoordinates
getType
Link copied to clipboard
open fun getType(): Int
Returns the road Type.
getUniqueId
Link copied to clipboard
open fun getUniqueId(): String
Returns the unique identifier of RoadElement.
hashCode
Link copied to clipboard
open fun hashCode(): Int
isTemporaryClosed
Link copied to clipboard
open fun isTemporaryClosed(): Boolean
Indicates whether the RoadElement will be temporary closed when we reach it
isValidParcelable
Link copied to clipboard
open fun isValidParcelable(): Boolean
If object after recreate from parcel contains all of reference like original object method returntrue.
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p: Parcel, p1: Int)
open fun writeToParcel(dest: Parcel, flags: Int)
For documentation, see android.os.Parcelable.writeToParcel().

Properties

CREATOR
Link copied to clipboard
val CREATOR: Parcelable.Creator<RoadElement>