DirectionParameters class
Represents the parameters for a direction request in the Google Maps Embed API.
The DirectionParameters class extends the Parameters class and provides additional properties and methods specific to direction requests.
The direction request requires an origin and a destination, and can optionally include waypoints, direction mode, avoids, and units.
The maximum number of waypoints allowed in a direction request is defined by the constant kMaxWaypoints.
Reference: https://developers.google.com/maps/documentation/embed/embedding-map#directions_mode
- Inheritance
-
- Object
- Parameters
- DirectionParameters
Constructors
-
DirectionParameters({required String key, required Place origin, required Place destination, List<
Place> ? waypoints, DirectionMode? directionMode, List<Avoid> ? avoids, Units? units, Coordinates? center, int? zoom, MapType? mapType, String? language, String? region}) -
const
Properties
-
avoids
→ List<
Avoid> ? -
final
- center → Coordinates?
-
finalinherited
- destination → Place
-
final
- directionMode → DirectionMode?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
finalinherited
- language → String?
-
finalinherited
- mapType → MapType?
-
finalinherited
- mode → MapMode
-
finalinherited
- origin → Place
-
final
- region → String?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- units → Units?
-
final
-
waypoints
→ List<
Place> ? -
final
- zoom → int?
-
finalinherited
Methods
-
getQueryParameters(
) → String -
Generates the query parameters string for the API request.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, String> -
Converts the parameters into a map representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- kMaxWaypoints → const int
- The maximum number of waypoints allowed in a direction request.