Enums
The following enums are available globally.
-
A
See moreCongestionLevel
indicates 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: Int, CustomStringConvertible
-
A
See moreRouteShapeFormat
indicates the format of a route’s shape in the raw HTTP response.Declaration
Swift
public enum RouteShapeFormat: UInt, CustomStringConvertible
-
A
See moreRouteShapeResolution
indicates the level of detail in a route’s shape, or whether the shape is present at all.Declaration
Swift
public enum RouteShapeResolution: UInt, CustomStringConvertible
-
A
See moreRouteShapeFormat
indicates the format of a route’s shape in the raw HTTP response.Declaration
Swift
public enum InstructionFormat: UInt, CustomStringConvertible
-
A
See moreTransportType
specifies the mode of transportation used for part of a route.Declaration
Swift
public enum TransportType: Int, CustomStringConvertible
-
A
ManeuverType
specifies the type of maneuver required to complete the route step. You can pair a maneuver type with aManeuverDirection
to choose an appropriate visual or voice prompt to present the user.In Swift, you can use pattern matching with a single switch statement on a tuple containing the maneuver type and maneuver direction to avoid a complex series of if-else-if statements or switch statements.
See moreDeclaration
Swift
public enum ManeuverType: Int, CustomStringConvertible
-
A
See moreManeuverDirection
clarifies aManeuverType
with directional information. The exact meaning of the maneuver direction for a given step depends on the step’s maneuver type; see theManeuverType
documentation for details.Declaration
Swift
public enum ManeuverDirection: Int, CustomStringConvertible