Route

open class Route : BaseNativeParcelable

Collection of maneuvers and roadElements connecting two or more waypoints. Waypoints may be thought of as the input to a route calculation whereas maneuvers are the results of calculating a route.

Types

RoadElementsCallback
Link copied to clipboard
interface RoadElementsCallback

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
open fun describeContents(): Int
For documentation, see android.os.Parcelable.
deserializeFromFullJSON
Link copied to clipboard
open fun deserializeFromFullJSON(@NonNull() json: String): Route
Deserialize route from json generated with serializeToFullJSON.
equals
Link copied to clipboard
open fun equals(o: Any): Boolean
getBoundingBox
Link copied to clipboard
open fun getBoundingBox(): GeoBoundingBox
The smallest GeoBoundingBox that contains the entire route.
getDestination
Link copied to clipboard
open fun getDestination(): Waypoint
Returns the destination waypoint of the route
getEVProfile
Link copied to clipboard
open fun getEVProfile(): EVProfile
Returns EV profile used for computing this route or null if this is not EV route
getManeuvers
Link copied to clipboard
open fun getManeuvers(): List<RouteManeuver>
Returns an array of directions for current route object from start.Note: This array doesn't change while navigating.
getRoadElements
Link copied to clipboard
open fun getRoadElements(@NonNull() callback: Route.RoadElementsCallback)
Returns a list of RoadElement objects for current route object from start.
open fun getRoadElements(@NonNull() callback: Route.RoadElementsCallback, @Nullable() executor: Executor)
Returns a list of RoadElement objects for current route object from start.
getRouteGeometry
Link copied to clipboard
open fun getRouteGeometry(): List<GeoCoordinates>
Returns list of coordinates representing route geometry
getRouteId
Link copied to clipboard
open fun getRouteId(): Int
Returns the unique id identifies the route.
getRouteInfo
Link copied to clipboard
open fun getRouteInfo(): RouteInfo
Returns basic route info.
getRouteViolatedAvoidOptions
Link copied to clipboard
open fun getRouteViolatedAvoidOptions(): RouteViolatedAvoidOptions
getRoutingOptions
Link copied to clipboard
open fun getRoutingOptions(): RoutingOptions
Returns options used for computing this route.
getStart
Link copied to clipboard
open fun getStart(): Waypoint
Returns the starting waypoint of the route
getTransitCountries
Link copied to clipboard
open fun getTransitCountries(): List<String>
Returns list of countries route is passing by
getWaypoints
Link copied to clipboard
open fun getWaypoints(): List<Waypoint>
List of Waypoints on the route including starting point and destination.
hashCode
Link copied to clipboard
open fun hashCode(): Int
isValidParcelable
Link copied to clipboard
open fun isValidParcelable(): Boolean
If object after recreate from parcel contains all of reference like original object method returntrue.
serializeToBriefJSON
Link copied to clipboard
open fun serializeToBriefJSON(): String
Serialize the route to a JSON string.
serializeToFullJSON
Link copied to clipboard
open fun serializeToFullJSON(): String
Serialize the route to a JSON string.
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<Route>