MPRoutingProvider

class MPRoutingProvider : RoutingProvider

Default RoutingProvider implementation

Constructors

Link copied to clipboard
open fun MPRoutingProvider()

Functions

Link copied to clipboard
open fun addRouteRestriction(@NonNull restriction: String)
Link copied to clipboard
open fun clearRouteRestrictions()
Link copied to clipboard
open fun getDistanceMatrix(    @NonNull origins: List<Point>,     @NonNull destinations: List<Point>,     @NonNull graphId: String,     @NonNull distanceMatrixReceiver: MPDistanceMatrixReceiver)
Gets a matrix of distances and duration between points inside a a venue
Link copied to clipboard
open fun query(@NonNull from: Point, @NonNull to: Point)
Link copied to clipboard
open fun queryMultipleDestinations(@NonNull from: Point, @NonNull destinations: List<Point>)
Link copied to clipboard
abstract fun setDateTime(date: Int, isDeparture: Boolean)
Sets either the departure time or the arrival time Only use this method if the departure time is not the current one
Link copied to clipboard
open fun setLanguage(@NonNull language: String)
Link copied to clipboard
open fun setOnRouteResultListener(@Nullable listener: OnRouteResultListener)
Sets the callback method for receiving routes
Link copied to clipboard
open fun setTravelMode(@Nullable mode: String)
Link copied to clipboard
open fun setUserRoles(@Nullable userRoles: List<UserRole>)
Set the user roles to apply during route calculation.

Properties

Link copied to clipboard
private open var dateTime: Int
Link copied to clipboard
val EXTERN_AVOID_FERRIES: String
Link copied to clipboard
val EXTERN_AVOID_HIGHWAYS: String
Link copied to clipboard
val EXTERN_AVOID_TOLLS: String