GoogleDistanceMatrix class

Constructors

GoogleDistanceMatrix({String? apiKey, String? baseUrl, Client? httpClient, Map<String, String>? apiHeaders})

Properties

apiHeaders Map<String, String>?
no setterinherited
apiKey String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri
no setterinherited

Methods

buildQuery(Map<String, dynamic> params) String
inherited
buildUrl({required List<Object> origin, required List<Object> destination, TravelMode? travelMode, String? languageCode, bool alternative = false, String? region, List<RouteType> avoids = const <RouteType>[], Unit? unit, Object? arrivalTime, Object? departureTime, List<TransitMode> transitMode = const [], TrafficModel? trafficModel, TransitRoutingPreferences? transitRoutingPreference}) String
dispose() → void
inherited
distanceWithAddress(List<String> origin, List<String> destination, {TravelMode? travelMode, String? languageCode, bool alternative = false, String? region, List<RouteType> avoids = const <RouteType>[], Unit? unit, Object? arrivalTime, Object? departureTime, List<TransitMode> transitMode = const [], TrafficModel? trafficModel, TransitRoutingPreferences? transitRoutingPreference}) Future<DistanceResponse>
distanceWithLocation(List<Location> origin, List<Location> destination, {TravelMode? travelMode, String? languageCode, bool alternative = false, String? region, List<RouteType> avoids = const <RouteType>[], Unit? unit, Object? arrivalTime, Object? departureTime, List<TransitMode> transitMode = const [], TrafficModel? trafficModel, TransitRoutingPreferences? transitRoutingPreference}) Future<DistanceResponse>
doGet(String url, {Map<String, String>? headers}) Future<Response>
inherited
doPost(String url, String body, {Map<String, String>? headers}) Future<Response>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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