TPEGTrafficService

public class TPEGTrafficService : TrafficService
extension TPEGTrafficService: OnStoreAccessChangedObserver
extension TPEGTrafficService: LocationProviderObservable

Reacts on and controls TPEG traffic provider behavior.

Important

This is a Public Preview API. It may be changed or removed at any time.

Initializer

Public

  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var isConnected: Bool { get }
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var trafficEventCount: Int { get }
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var trafficInterface: UnsafeMutableRawPointer? { get }
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func updateCurrentPosition(_ position: CLLocationCoordinate2D)
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func updateRoutes(_ routes: [[CLLocationCoordinate2D]])
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func updateLocale(_ locale: Locale)
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func notifyMapLoaded()
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func notifyMapUnloading()
  • Important

    This is a Public Preview API. It may be changed or removed at any time. Sets a new location engine.

    Declaration

    Swift

    public func updateLocationProvider(_ locationProvider: LocationProvider)

    Parameters

    locationProvider

    The new LocationProvider.

OnStoreAccessChangedObserver

  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var onStoreAccessChangedObserverId: String { get }
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func onReadOnlyAccessGranted(mapChanged: Bool)
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func onReadOnlyAccessReleaseRequested(accessReleased: @escaping () -> ())

LocationProviderObservable

  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func onAuthorizationStatusChanged(isGranted: Bool)
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func onHeadingUpdate(newHeading _: CLHeading, lastLocation _: GeoLocation)
  • Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public func onLocationUpdated(location: GeoLocation)
  • Important

    This is a Public Preview API. It may be changed or removed at any time. Used to enable traffic along corridors of planned routes is fetched from the backend. This can be useful to display traffic information for the route, but can also have a negative impact on planning routes onboard or finding faster alternatives.

    Declaration

    Swift

    public func listenForRouteEvents(eventPublisher: AnyPublisher<NavigationEvent, Never>)