Other Type Aliases
The following type aliases are available globally.
-
Range of numeric values determining congestion level.
Congestion ranges work with
NumericCongestionLevel
values that can be requested by specifyingAttributeOptions.numericCongestionLevel
inDirectionOptions.attributes
when making Directions request.Declaration
Swift
public typealias CongestionRange = Range<NumericCongestionLevel>
-
Defines source of routing engine (online or offline) to be used for requests.
Declaration
Swift
public typealias RoutingProviderSource = MapboxRoutingProvider.Source
-
A closure to be called when
RouteLeg
was changed.Declaration
Swift
public typealias AdvanceLegCompletionHandler = (_ result: Result<RouteProgress, Error>) -> Void
Parameters
result
Result, which in case of successfully changed leg contains the most recent
RouteProgress
and error, in case of failure. -
A container view controller is a view controller that behaves as a navigation component; that is, it responds as the user progresses along a route according to the
NavigationServiceDelegate
protocol.Declaration
Swift
public typealias ContainerViewController = UIViewController & NavigationComponent