IsochroneOptions
public class IsochroneOptions
Options for calculating contours from the Mapbox Isochrone service.
-
Contours GeoJSON format.
See moreDeclaration
Swift
public enum ContourFormat
-
A string specifying the primary mode of transportation for the contours.
The default value of this property is
ProfileIdentifier.automobile
, which specifies driving directions.Declaration
Swift
public var profileIdentifier: ProfileIdentifier
-
A coordinate around which to center the isochrone lines.
Declaration
Swift
public var centerCoordinate: LocationCoordinate2D
-
Contours bounds and color sheme definition.
Declaration
Swift
public var contours: Contours
-
Specifies the format of output contours.
Defaults to
.lineString
which represents contours as linestrings.Declaration
Swift
public var contoursFormat: ContourFormat
-
Removes contours which are
denoisingFactor
times smaller than the biggest one.The default is 1.0. A value of 1.0 will only return the largest contour for a given value. A value of 0.5 drops any contours that are less than half the area of the largest contour in the set of contours for that same value.
Declaration
Swift
public var denoisingFactor: Float?
-
Douglas-Peucker simplification tolerance.
Higher means simpler geometries and faster performance. There is no upper bound. If no value is specified in the request, the Isochrone API will choose the most optimized value to use for the request.
Note
Simplification of contours can lead to self-intersections, as well as intersections of adjacent contours.Declaration
Swift
public var simplificationTolerance: LocationDistance?
-
An array of URL query items (parameters) to include in an HTTP request.
Declaration
Swift
public var urlQueryItems: [URLQueryItem] { get }
-
Definition of contours limits.
See moreDeclaration
Swift
public enum Contours
-
RGB-based color representation for Isochrone contour.
Declaration
Swift
public typealias Color = UIColor
-
RGB-based color representation for Isochrone contour.
See more