MatrixApi class

The Mapbox Matrix API returns travel times between many points.

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

Constructors

MatrixApi(MapboxApi api, {String version = 'v1', String endpoint = 'https://api.mapbox.com/directions-matrix'})

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<int>? destinations, int fallbackSpeed = 0, List<int> sources = const <int>[]}) Future<MatrixApiResponse>
Returns a duration matrix, a distance matrix, or both, showing travel times and distances between coordinates. In the default case, this endpoint returns a symmetric matrix that uses all the input coordinates as sources and destinations. Using the optional sources and destination parameters, you can also generate an asymmetric matrix that uses only some coordinates as sources or destinations.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited