directionsWithAddress method
Future<DirectionsResponse>
directionsWithAddress(
- String origin,
- String destination, {
- TravelMode? travelMode,
- List<
Waypoint> waypoints = const [], - bool alternatives = false,
- @Deprecated("[avoid] is deprecated, use [avoids] instead.") RouteType? avoid,
- 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> directionsWithAddress(
String origin,
String destination, {
TravelMode? travelMode,
List<Waypoint> waypoints = const [],
bool alternatives = false,
@Deprecated("[avoid] is deprecated, use [avoids] instead.")
RouteType? avoid,
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,
);
}