distanceWithAddress method

Future<DistanceResponse> distanceWithAddress(
  1. List<String> origin,
  2. List<String> destination, {
  3. TravelMode? travelMode,
  4. String? languageCode,
  5. bool alternative = false,
  6. String? region,
  7. List<RouteType> avoids = const <RouteType>[],
  8. Unit? unit,
  9. Object? arrivalTime,
  10. Object? departureTime,
  11. List<TransitMode> transitMode = const [],
  12. TrafficModel? trafficModel,
  13. TransitRoutingPreferences? transitRoutingPreference,
})

Implementation

Future<DistanceResponse> distanceWithAddress(
  List<String> origin,
  List<String> destination, {
  TravelMode? travelMode,
  String? languageCode,
  bool alternative = false,
  String? region,
  List<RouteType> avoids = const <RouteType>[],
  Unit? unit,
  Object? /*DateTime|num*/ arrivalTime,
  Object? /*DateTime|num|String('now')*/ departureTime,
  List<TransitMode> transitMode = const [],
  TrafficModel? trafficModel,
  TransitRoutingPreferences? transitRoutingPreference,
}) async {
  return _distance(
    origin,
    destination,
    travelMode: travelMode,
    languageCode: languageCode,
    alternative: alternative,
    region: region,
    avoids: avoids,
    unit: unit,
    arrivalTime: arrivalTime,
    departureTime: departureTime,
    transitMode: transitMode,
    trafficModel: trafficModel,
    transitRoutingPreference: transitRoutingPreference,
  );
}