RouteTrafficEventObject

Objective-C


@interface RouteTrafficEventObject : TrafficEventObject

Swift

class RouteTrafficEventObject : TrafficEventObject

This class encapsulates route traffic event information.

  • Returns the distance in meters from starting point on current route of the traffic event to the destination.

    Declaration

    Objective-C

    - (int)getDistanceToDestination;

    Swift

    func getDistanceToDestination() -> Int32
  • Returns the route traffic event start point.

    Declaration

    Objective-C

    - (nullable CoordinatesObject *)getFrom;

    Swift

    func getFrom() -> CoordinatesObject?
  • Returns the route traffic event end point.

    Declaration

    Objective-C

    - (nullable CoordinatesObject *)getTo;

    Swift

    func getTo() -> CoordinatesObject?
  • Returns the traffic event start point as landmark.

    Declaration

    Objective-C

    - (nullable LandmarkObject *)getFromLandmark;

    Swift

    func getFromLandmark() -> LandmarkObject?
  • Returns the traffic event end point as landmark.

    Declaration

    Objective-C

    - (nullable LandmarkObject *)getToLandmark;

    Swift

    func getToLandmark() -> LandmarkObject?
  • Returns true if event contains traffic delay.

    Declaration

    Objective-C

    - (BOOL)hasTrafficEventOnDistance:(unsigned int)distance;

    Swift

    func hasTrafficEvent(onDistance distance: UInt32) -> Bool

    Parameters

    distance

    The remaining travel distance in meters.

  • Returns the distance formatted.

    Declaration

    Objective-C

    - (nonnull NSString *)getDistanceFormatted;

    Swift

    func getDistanceFormatted() -> String
  • Returns the distance unit formatted.

    Declaration

    Objective-C

    - (nonnull NSString *)getDistanceUnitFormatted;

    Swift

    func getDistanceUnitFormatted() -> String
  • Returns the delay time formatted.

    Declaration

    Objective-C

    - (nonnull NSString *)getDelayTimeFormatted;

    Swift

    func getDelayTimeFormatted() -> String
  • Returns the delay time unit formatted.

    Declaration

    Objective-C

    - (nonnull NSString *)getDelayTimeUnitFormatted;

    Swift

    func getDelayTimeUnitFormatted() -> String
  • Returns the delay distance formatted.

    Declaration

    Objective-C

    - (nonnull NSString *)getDelayDistanceFormatted;

    Swift

    func getDelayDistanceFormatted() -> String
  • Returns the delay distance unit formatted.

    Declaration

    Objective-C

    - (nonnull NSString *)getDelayDistanceUnitFormatted;

    Swift

    func getDelayDistanceUnitFormatted() -> String