MPDirectionsService

Constructors

Link copied to clipboard
constructor(context: Context)

Creates a MPDirectionsService object than can be queried for directions between different MPPoints

constructor()

Creates a MPDirectionsService object than can be queried for directions between different MPPoints

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addAvoidWayType(highWayType: String)
Link copied to clipboard
fun addExcludeWayType(highwayType: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getGraphId(position: MPPoint?): String?

Finds out if the given location point is inside a venue

Link copied to clipboard
fun getMatrix(origins: List<MPPoint>, destinations: List<MPPoint>, graphId: String, onDistanceMatrixResultListener: OnDistanceMatrixResultListener)

Gets a matrix of distances and duration between points inside a a venue

Link copied to clipboard
open override fun query(from: MPPoint, to: MPPoint)

Query a route between two points

fun query(from: MPPoint, to: MPPoint, stops: List<MPPoint>?, optimize: Boolean?)

Query a route between two points, with optional stops

Link copied to clipboard
fun setIsDeparture(isDeparture: Boolean)
Link copied to clipboard
Link copied to clipboard
fun setTime(date: Date?)
Link copied to clipboard
fun setTravelMode(travelMode: String)