OptimizationApi class

The Mapbox Optimization API returns a duration-optimized route between the input coordinates.

https://docs.mapbox.com/api/navigation/#optimization

Constructors

OptimizationApi(MapboxApi api, {String version = 'v1', String endpoint = 'https://api.mapbox.com/optimized-trips'})

Properties

api MapboxApi
getter/setter pair
endpoint String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request({NavigationProfile? profile, List<List<double>> coordinates = const <List<double>>[], List<NavigationAnnotations> annotations = const <NavigationAnnotations>[], List<NavigationApproaches> approaches = const <NavigationApproaches>[], List<NavigationBearings> bearings = const <NavigationBearings>[], NavigationDestination destination = NavigationDestination.ANY, List<List<int>> distributions = const <List<int>>[], NavigationGeometries geometries = NavigationGeometries.POLYLINE, String language = 'en', NavigationOverview overview = NavigationOverview.SIMPLIFIED, List<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