RoutesApi class
Google Routes API (v2) lightweight client.
Supports: alternative routes, route modifiers (avoid tolls/highways/ferries), advanced waypoints (side-of-road, via/stopover), toll info, units/language, configurable FieldMask, and Compute Route Matrix for batch ETAs.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
computeRouteMatrix(
{required String apiKey, required List< Waypoint> origins, required List<Waypoint> destinations, TravelMode mode = TravelMode.drive, Units units = Units.metric, String languageCode = 'pt-BR', String? fieldMask}) → Future<List< RouteMatrixElement> > - Computes an ETA matrix for multiple origins/destinations. Returns one element per origin x destination (sparse list with indices).
-
computeRoutes(
{required String apiKey, required Waypoint origin, required Waypoint destination, List< Waypoint> intermediates = const [], RouteModifiers? modifiers, TravelMode mode = TravelMode.drive, Units units = Units.metric, String languageCode = 'pt-BR', bool alternatives = true, List<String> ? tollPasses, String? fieldMask, PolylineQuality polylineQuality = PolylineQuality.high}) → Future<RoutesResponse> -
Computes routes between
originanddestination.