MapMatchingApi class

The Mapbox Map Matching API snaps fuzzy, inaccurate traces from a GPS unit or a phone to the OpenStreetMap road and path network using the Directions API.

https://docs.mapbox.com/api/navigation/#map-matching

Constructors

MapMatchingApi(MapboxApi api, {String version = 'v5', String endpoint = 'https://api.mapbox.com/matching'})

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>[], NavigationApproaches approaches = NavigationApproaches.UNRESTRICTED, NavigationGeometries geometries = NavigationGeometries.POLYLINE, String language = 'en', NavigationOverview overview = NavigationOverview.SIMPLIFIED, List<double> radiuses = const <double>[], bool steps = false, bool tidy = false, List<int> timestamps = const <int>[], List<String> waypointNames = const <String>[], List<List<double>> waypoints = const <List<double>>[]}) Future<MapMatchingApiResponse>
Return a path on the road and path network that is closest to the input traces.
toString() String
A string representation of this object.
inherited

Operators

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