DirectionsApi class
The Mapbox Directions API will show you how to get where you're going.
Constructors
- DirectionsApi(MapboxApi api, {String version = 'v5', String endpoint = 'https://api.mapbox.com/directions'})
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>>[], bool alternatives = false, List<double> >NavigationAnnotations> annotations = const <NavigationAnnotations>[], List<NavigationBearings> bearings = const <NavigationBearings>[], bool continueStraight = false, List<NavigationExclude> excludes = const <NavigationExclude>[], NavigationGeometries geometries = NavigationGeometries.POLYLINE, NavigationOverview overview = NavigationOverview.SIMPLIFIED, List<double> radiuses = const <double>[], List<NavigationApproaches> approaches = const <NavigationApproaches>[], bool steps = false, bool bannerInstructions = false, String language = 'en', bool roundaboutExits = false, bool voiceInstructions = false, NavigationVoiceUnits voiceUnits = NavigationVoiceUnits.IMPERIAL, List<String> waypointNames = const <String>[], List<List< waypointTargets = const <List<double>>[], List<double> >List< waypoints = const <List<double>>[], double walkingSpeed = 1.42, double walkwayBias = 0, double alleyBias = 0}) → Future<double> >DirectionsApiResponse> - Retrieve directions between waypoints. Directions requests must specify at least two waypoints as starting and ending points.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited