MPDirectionsService

class MPDirectionsService : MPDirectionsServiceInterface

Default MPDirectionsServiceInterface implementation

Constructors

Link copied to clipboard
open fun MPDirectionsService(@NonNull context: Context)
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 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)
Queries the map for a path between two MPPoints These can be fetched from a MPLocation via getPoint
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)