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 specifying AttributeOptions.numericCongestionLevel in DirectionOptions.attributes when making Directions request.

    Declaration

    Swift

    public typealias CongestionRange = Range<NumericCongestionLevel>
  • 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.

  • Dictionary, which contains any custom user info related data on CarPlay (for example it’s used by CPTrip, while filling it with CPRouteChoice objects or for storing user information in CPListItem).

    In case if CPRouteChoice, CPListItem or other CarPlayUserInfo dependant object uses different type in userInfo it may lead to undefined behavior.

    Declaration

    Swift

    public typealias CarPlayUserInfo = [String : Any?]
  • 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
  • A type that represents a UIView that is CourseUpdatable.

    Declaration

    Swift

    public typealias UserCourseView = UIView & CourseUpdatable