Other Enumerations
The following enumerations are available globally.
-
A
See moreCongestionLevelindicates the level of traffic congestion along a road segment relative to the normal flow of traffic along that segment. You can color-code a route line according to the congestion level along each segment of the route.Declaration
Swift
public enum CongestionLevel : String, Codable, CaseIterable -
Describes how
See morecustomOptionsByRawValuecomponent is compared during logical operations inCustomValueOptionSet.Declaration
Swift
public enum CustomOptionComparisonPolicy -
An error that occurs when calculating directions.
See moreDeclaration
Swift
public enum DirectionsError : LocalizedErrorextension DirectionsError: Equatable -
An error that occurs when encoding or decoding a type defined by the MapboxDirections framework.
See moreDeclaration
Swift
public enum DirectionsCodingError : Error -
A
See moreRouteShapeFormatindicates the format of a route or match shape in the raw HTTP response.Declaration
Swift
public enum RouteShapeFormat : String, Codable -
A
See moreRouteShapeResolutionindicates the level of detail in a route’s shape, or whether the shape is present at all.Declaration
Swift
public enum RouteShapeResolution : String, Codable -
A system of units of measuring distances and other quantities.
See moreDeclaration
Swift
public enum MeasurementSystem : String, Codable -
A
See moreDrivingSideindicates which side of the road cars and traffic flow.Declaration
Swift
public enum DrivingSide : String, Codable -
An error that occurs when calculating isochrone contours.
See moreDeclaration
Swift
public enum IsochroneError : LocalizedError -
A
Weightenum represents the weight given to a specificMatchby the Directions API. The default metric is a compound index called “routability”, which is duration-based with additional penalties for less desirable maneuvers.Declaration
Swift
public enum Weight : Equatable -
A road classification according to the Mapbox Streets source , version 8.
See moreDeclaration
Swift
public enum MapboxStreetsRoadClass : String, Codable -
An error that occurs when computing matrices.
See moreDeclaration
Swift
public enum MatrixError : LocalizedError -
A
See moreTransportTypespecifies the mode of transportation used for part of a route.Declaration
Swift
public enum TransportType : String, Codable -
A
ManeuverTypespecifies the type of maneuver required to complete the route step. You can pair a maneuver type with aManeuverDirectionto choose an appropriate visual or voice prompt to present the user.To avoid a complex series of if-else-if statements or switch statements, use pattern matching with a single switch statement on a tuple that consists of the maneuver type and maneuver direction.
See moreDeclaration
Swift
public enum ManeuverType : String, Codable -
A
See moreManeuverDirectionclarifies aManeuverTypewith directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see theManeuverTypedocumentation for details.Declaration
Swift
public enum ManeuverDirection : String, Codable -
A road sign design standard.
A sign standard can affect how a user interface should display information related to the road. For example, a speed limit from the
See moreRouteLeg.segmentMaximumSpeedLimitsproperty may appear in a different-looking view depending on theRouteStep.speedLimitSignproperty.Declaration
Swift
public enum SignStandard : String, Codable
Install in Dash
Other Enumerations Reference