MPDirectionsService class

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAvoidWayType(String avoidWayType) Future<void>
Add an avoided WayType, these are based on OSM highways
addExcludeWayType(String avoidWayType) Future<void>
Add an excluded WayType, these are based on OSM highways
clearAvoidWayType() Future<void>
Clears all added avoidWayTypes
clearExcludeWayType() Future<void>
Clears all added excludeWayTypes
getRoute({required MPPoint origin, required MPPoint destination, List<MPPoint>? stops, bool? optimize = false}) Future<MPRoute>
Queries the routing network to generate a route from the origin to the destination.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setIsDeparture(bool isDeparture) Future<void>
Sets whether routes should use departure time or arrival time when using the transit travel mode
setTime(int time) Future<void>
sets the wanted arrival/departure time for routes generated with this MPDirectionsService, this setting is used in conjunction with setIsDeparture and setTravelMode
setTravelMode(String travelMode) Future<void>
defines the travel mode for routes, can be one of the following:
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited