RouteStep

data class RouteStep(maneuver: StepManeuver?, durationInS: Double?, distanceInM: Double?, encodedPolyline: String?, name: String?, ref: String?, rotaryName: String?, intersections: List<RouteIntersection>?, remainingDistanceInM: Double, iconResId: Int, distances: MutableList<Double>, durations: MutableList<Double>) : Parcelable

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
remainingDistance
Link copied to clipboard
fun remainingDistance(geometryIndex: Int): Pair<Double, Double>
remainingDuration
Link copied to clipboard
fun remainingDuration(geometryIndex: Int): Pair<Double, Double>
setDistance
Link copied to clipboard
fun setDistance(distance: Double?)

Sets distanceInM and remainingDistanceInM if distance not null. This should be used for any case where distanceInM is set.

writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

coordinates
Link copied to clipboard
val coordinates: List<LocationPoint>?
distanceInM
Link copied to clipboard
@SerializedName(value = "distance")
var distanceInM: Double? = null
distances
Link copied to clipboard
val distances: MutableList<Double>
durationInS
Link copied to clipboard
@SerializedName(value = "duration")
var durationInS: Double? = null
durations
Link copied to clipboard
val durations: MutableList<Double>
encodedPolyline
Link copied to clipboard
@SerializedName(value = "geometry")
var encodedPolyline: String? = null
iconResId
Link copied to clipboard
var iconResId: Int = 0
intersections
Link copied to clipboard
@SerializedName(value = "intersections")
var intersections: List<RouteIntersection>? = null
maneuver
Link copied to clipboard
@SerializedName(value = "maneuver")
var maneuver: StepManeuver? = null
name
Link copied to clipboard
@SerializedName(value = "name")
var name: String? = null
polyline
Link copied to clipboard
val polyline: Polyline?
ref
Link copied to clipboard
@SerializedName(value = "ref")
var ref: String? = null
remainingDistanceInM
Link copied to clipboard
var remainingDistanceInM: Double = 0.0
rotaryName
Link copied to clipboard
@SerializedName(value = "rotary_name")
var rotaryName: String? = null