IsochroneApi class

An isochrone is a line that connects points of equal travel time around a given location.

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

Constructors

IsochroneApi(MapboxApi api, {String version = 'v1', String endpoint = 'https://api.mapbox.com/isochrone'})

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<double> coordinates = const <double>[], List<int> contoursMinutes = const <int>[], List<String> contoursColors = const <String>[], bool polygons = false, double denoise = 1.0, double? generalize}) Future<IsochroneApiResponse>
Given a location and a routing profile, retrieve up to four isochrone contours. The contours are calculated using rasters and are returned as either polygon or line features, depending on your input setting for the polygons parameter.
toString() String
A string representation of this object.
inherited

Operators

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