directionsWithLocation method
Future<DirectionsResponse>
directionsWithLocation(
- Location origin,
- Location destination, {
- TravelMode? travelMode,
- List<
Waypoint> waypoints = const [], - bool alternatives = false,
- List<
RouteType> avoids = const [], - String? language,
- Unit? units,
- String? region,
- Object? arrivalTime,
- Object? departureTime,
- List<
TransitMode> transitMode = const [], - TrafficModel? trafficModel,
- TransitRoutingPreferences? transitRoutingPreference,
Implementation
Future<DirectionsResponse> directionsWithLocation(
Location origin,
Location destination, {
TravelMode? travelMode,
List<Waypoint> waypoints = const [],
bool alternatives = false,
List<RouteType> avoids = const [],
String? language,
Unit? units,
String? region,
Object? /*DateTime|num*/ arrivalTime,
Object? /*DateTime|num|String('now')*/ departureTime,
List<TransitMode> transitMode = const [],
TrafficModel? trafficModel,
TransitRoutingPreferences? transitRoutingPreference,
}) async {
return directions(
origin,
destination,
travelMode: travelMode,
waypoints: waypoints,
alternatives: alternatives,
avoids: avoids,
language: language,
units: units,
region: region,
arrivalTime: arrivalTime,
departureTime: departureTime,
transitMode: transitMode,
trafficModel: trafficModel,
transitRoutingPreference: transitRoutingPreference,
);
}