Class MPDirectionsService
Constructors
Private
constructor
- new MPDirectionsService(id): MPDirectionsService
Private
Properties
Private
Readonly
id
id: string
Methods
addAvoidWayType
- addAvoidWayType(wayType): Promise<void>
-
Returns Promise<void>
addExcludeWayType
- addExcludeWayType(wayType): Promise<void>
-
Returns Promise<void>
clearExcludeWayType
- clearExcludeWayType(): Promise<void>
-
Returns Promise<void>
clearWayType
- clearWayType(): Promise<void>
-
Returns Promise<void>
getRoute
- getRoute(origin, destination): Promise<MPRoute>
-
Returns Promise<MPRoute>
setIsDeparture
- setIsDeparture(isDeparture): Promise<void>
-
Returns Promise<void>
setTime
- setTime(time): Promise<void>
-
Returns Promise<void>
setTravelMode
- setTravelMode(travelMode): Promise<void>
-
Returns Promise<void>
Service used to generate a route between two MPPoints.
Export