HERE iOS SDK Developer's Guide

NMATrafficNotificationInfo

Class Summary

class NMATrafficNotificationInfo

Derived from: NSObject

Traffic notification information object that gives detailed information about a specific instance of traffic within a NMATrafficNotification.

Include: NMAKit.framework/headers/NMATrafficNotificationInfo.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMATrafficNotificationInfo

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, assign] NMAGeoBoundingBox affectedArea

The geographical area represented by this NMATrafficNotificationInfo object

[readable, assign] double  affectedLength

The length, in meters, of the traffic instance

[readable, assign] double  distance

[readable, assign] NMATrafficSeverity   severity

Traffic Severity

[readable, assign] NSTimeInterval  travelTime

The free flow travel time (i

[readable, assign] NSTimeInterval  travelTimeWithTraffic

The travel time, adjusted to account for traffic, to travel the road segment represented by this NMATrafficNotificationInfo object for a distance of affectedLength

[readable, assign] NMATrafficNotificationType   type

Traffic Notification type

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nonnull instancetype) init

Class Method Summary

Table 3. Class Methods
Class Methods

+(nonnull instancetype) new

Class Details

Traffic notification information object that gives detailed information about a specific instance of traffic within a NMATrafficNotification.

Note:

This class should not be initialized directly.

Public Property Details

[readable, assign] NMAGeoBoundingBoxaffectedArea

The geographical area represented by this NMATrafficNotificationInfo object.

[readable, assign] double affectedLength

The length, in meters, of the traffic instance.

When this NMATrafficNotificationInfo object is obtained via NMATrafficWarner during navigation of a route (([ NMANavigationManager navigationMode] == NMANavigationModeTurnByTurn) or in repsonse to querying the traffic on a route this method returns the portion of the current route affected by the traffic instance.

Otherwise this method returns the full length of the traffic instance.

[readable, assign] double distance

The distance, in meters, from the current GPS position (as reported by NMAPositioningManager) to the start of the traffic instance

[readable, assign] NMATrafficSeverity  severity

Traffic Severity.

[readable, assign] NSTimeInterval travelTime

The free flow travel time (i.e. average time with no traffic) to travel the road segment represented by this NMATrafficNotificationInfo object for a distance of affectedLength.

[readable, assign] NSTimeInterval travelTimeWithTraffic

The travel time, adjusted to account for traffic, to travel the road segment represented by this NMATrafficNotificationInfo object for a distance of affectedLength.

[readable, assign] NMATrafficNotificationType  type

Traffic Notification type.

Instance Method Details

-(nonnull instancetype) init

Instances of this class should not be initialized directly

Class Method Details

+(nonnull instancetype) new

Instances of this class should not be initialized directly