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.

Functions

describeContents
Link copied to clipboard
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.
destroy
Link copied to clipboard
open fun destroy()
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
getManeuvers
Link copied to clipboard
open fun getManeuvers(): List<RouteManeuver>
Returns an array of directions for current route object from start.
getNativeRouteCountForHandle
Link copied to clipboard
open fun getNativeRouteCountForHandle(): Int
getPolylinesFromRouteSegments
Link copied to clipboard
open fun getPolylinesFromRouteSegments(routeSegments: List<RouteSegment>): List<GeoPolyline>
Returns list of GeoPolylines representing route segments
getRouteElements
Link copied to clipboard
open fun getRouteElements(@NonNull listener: RouteElementsListener)
open fun getRouteElements(@NonNull listener: RouteElementsListener, @Nullable executor: Executor)
Returns a list of RouteElement 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.
getRouteRequest
Link copied to clipboard
open fun getRouteRequest(): RouteRequest
Returns options used for computing this route.
getRouteViolatedAvoidOptions
Link copied to clipboard
open fun getRouteViolatedAvoidOptions(): RouteViolatedAvoidOptions
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 return true.
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
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>