OptimizationApi class
The Mapbox Optimization API returns a duration-optimized route between the input coordinates.
Constructors
- OptimizationApi(MapboxApi api, {String version = 'v1', String endpoint = 'https://api.mapbox.com/optimized-trips'})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
{NavigationProfile? profile, List< List< coordinates = const <List<double>>[], List<double> >NavigationAnnotations> annotations = const <NavigationAnnotations>[], List<NavigationApproaches> approaches = const <NavigationApproaches>[], List<NavigationBearings> bearings = const <NavigationBearings>[], NavigationDestination destination = NavigationDestination.ANY, List<List< distributions = const <List<int>>[], NavigationGeometries geometries = NavigationGeometries.POLYLINE, String language = 'en', NavigationOverview overview = NavigationOverview.SIMPLIFIED, List<int> >double> radiuses = const <double>[], NavigationSource source = NavigationSource.ANY, bool steps = false, bool roundtrip = true}) → Future<OptimizationApiResponse> - A call to this endpoint retrieves a duration-optimized route between input coordinates.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited