RoutePlan

open class RoutePlan : BaseNativeParcelable

RoutePlan contains all information needed to calculate a route. It contains start, destination and waypoints.

Constructors

RoutePlan
Link copied to clipboard
open fun RoutePlan()
Default constructor.

Functions

addViaPoint
Link copied to clipboard
open fun addViaPoint(viaPoint: GeoCoordinates)
Adds a waypoint location to the route plan.
open fun addViaPoint(waypoint: Waypoint)
Adds a waypoint location to the route plan.
open fun addViaPoint(viaPoint: GeoCoordinates, @Nullable() customName: String)
Adds a waypoint location to the route plan.
describeContents
Link copied to clipboard
abstract fun describeContents(): Int
open fun describeContents(): Int
For documentation, see android.os.Parcelable.
getDestination
Link copied to clipboard
open fun getDestination(): Waypoint
getRoutingOptions
Link copied to clipboard
open fun getRoutingOptions(): RoutingOptions
Returns the wanted RoutingOptions.
getStart
Link copied to clipboard
open fun getStart(): Waypoint
Returns the GeoCoordinates of starting position.
getViaPoints
Link copied to clipboard
open fun getViaPoints(): List<Waypoint>
Returns all the waypoints on the route.
isValidParcelable
Link copied to clipboard
open fun isValidParcelable(): Boolean
If object after recreate from parcel contains all of reference like original object method returntrue.
setDestination
Link copied to clipboard
open fun setDestination(destination: GeoCoordinates)
Sets a destination location for calculating a route.
open fun setDestination(waypoint: Waypoint)
Sets a destination location for calculating a route.
open fun setDestination(destination: GeoCoordinates, @Nullable() customName: String)
Sets a destination location for calculating a route.
setRoutingOptions
Link copied to clipboard
open fun setRoutingOptions(options: RoutingOptions)
Sets the route options.
setStart
Link copied to clipboard
open fun setStart(start: GeoCoordinates)
Sets a start location for calculating a route.
open fun setStart(waypoint: Waypoint)
Sets a start location for calculating a route.
open fun setStart(start: GeoCoordinates, @Nullable() customName: String)
Sets a start location for calculating a route.
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.

Properties

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