directionsWithAddress method

Future<DirectionsResponse> directionsWithAddress(
  1. String origin,
  2. String destination, {
  3. TravelMode? travelMode,
  4. List<Waypoint> waypoints = const [],
  5. bool alternatives = false,
  6. @deprecated RouteType? avoid,
  7. List<RouteType> avoids = const [],
  8. String? language,
  9. Unit? units,
  10. String? region,
  11. Object? arrivalTime,
  12. Object? departureTime,
  13. List<TransitMode> transitMode = const [],
  14. TrafficModel? trafficModel,
  15. TransitRoutingPreferences? transitRoutingPreference,
})

Implementation

Future<DirectionsResponse> directionsWithAddress(
  String origin,
  String destination, {
  TravelMode? travelMode,
  List<Waypoint> waypoints = const [],
  bool alternatives = false,
  @deprecated 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,
  );
}