DistanceIsochroneRequest class
Represents API request parameters for the Distance API isochrone endpoint.
Constructors
-
DistanceIsochroneRequest.new({required LatLngLiteral origin, required int value, DistanceTravelMode? mode, String? language, UnitSystem? unitSystem, DirectionMethod? method, bool? avoidFerries, bool? avoidHighways, bool? avoidTolls, List<
List< ? avoidZones})LatLng> > - Constructor for the DistanceIsochroneRequest class.
-
DistanceIsochroneRequest.fromJson(Map<
String, dynamic> json) -
Creates an instance of DistanceIsochroneRequest from a JSON map.
factory
Properties
- avoidFerries → bool?
-
If true, instructs the Distance service to avoid ferries where possible.
final
- avoidHighways → bool?
-
If true, instructs the Distance service to avoid highways where possible.
final
- avoidTolls → bool?
-
If true, instructs the Distance service to avoid toll roads where possible.
final
-
avoidZones
→ List<
List< ?LatLng> > -
If set, instructs the Distance service to avoid the specific polygons.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String?
-
The language code indicating the language in which the results should be returned.
final
- method → DirectionMethod?
-
Specifies the method to compute the isochrone: 'time' (fastest) or 'distance' (shortest).
final
- mode → DistanceTravelMode?
-
Specifies the mode of transport to use when calculating the isochrone.
final
- origin → LatLngLiteral
-
The starting point in latitude/longitude coordinates.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unitSystem → UnitSystem?
-
Specifies the unit system to use when expressing distance.
final
- value → int
-
The value for the isochrone contour (time in minutes or distance in kilometers).
The maximum allowed value is 120.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts an instance of DistanceIsochroneRequest to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited