MPDirectionsService

Constructors

Link copied to clipboard
open fun MPDirectionsService(@NonNull context: Context)
Creates a MPDirectionsService object than can be queried for directions between different MPPoints
Link copied to clipboard
Creates a MPDirectionsService object than can be queried for directions between different MPPoints

Functions

Link copied to clipboard
open fun addAvoidWayType(highWayType: String)
Link copied to clipboard
open fun addExcludeWayType(@NonNull highwayType: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun clearWayType()
Link copied to clipboard
open fun getMatrix(@NonNull origins: List<MPPoint>, @NonNull destinations: List<MPPoint>, @NonNull graphId: String, @NonNull onDistanceMatrixResultListener: OnDistanceMatrixResultListener)
Gets a matrix of distances and duration between points inside a a venue
Link copied to clipboard
open fun query(@NonNull from: MPPoint, @NonNull to: MPPoint)
Query a route between two points
open fun query(@NonNull from: MPPoint, @NonNull to: MPPoint, @Nullable stops: List<MPPoint>, @Nullable optimize: Boolean)
Query a route between two points, with optional stops
Link copied to clipboard
open fun setIsDeparture(isDeparture: Boolean)
Link copied to clipboard
open fun setRouteResultListener(routeResultListener: OnRouteResultListener)
Link copied to clipboard
open fun setTime(date: Date)
Link copied to clipboard
open fun setTravelMode(travelMode: String)