SYTrafficEvent Class Reference

SYTrafficEvent represents a real-world traffic event such as an accident or road work. Not all traffic events will have complete information available, and some information may not be available immediately. If a property returns nil, it should be checked again after some time. More...

#import <SYTraffic.h>

Inheritance diagram for SYTrafficEvent:
Collaboration diagram for SYTrafficEvent:

Instance Methods

(instancetype) - initWithTrafficNotificationInfo: [implementation]
 

Properties

NSTimeInterval delay
 Delay in seconds. More...
 
SYDistance distance
 Distance of the traffic event from the route start, in meters. More...
 
SYDistance affectedLength
 The affected length of the traffic event, in meters. More...
 
NSString * uniqueId
 Event unique id. More...
 
SYTrafficSeverity severity
 Indicates the severity of the traffic event, from "Normal" to "Blocking". More...
 
SYGeoBoundingBoxaffectedArea
 Area bounding box of the event. More...
 
Sygic::Traffic::TrafficNotificationInfo sdkTrafficNotificationInfo [implementation]
 

Detailed Description

SYTrafficEvent represents a real-world traffic event such as an accident or road work. Not all traffic events will have complete information available, and some information may not be available immediately. If a property returns nil, it should be checked again after some time.

Method Documentation

◆ initWithTrafficNotificationInfo:()

- (instancetype) initWithTrafficNotificationInfo: (const Sygic::Traffic::TrafficNotificationInfo &)  info
implementation

Property Documentation

◆ affectedArea

- (SYGeoBoundingBox*) affectedArea
readnonatomicassign

Area bounding box of the event.

◆ affectedLength

- (SYDistance) affectedLength
readnonatomicassign

The affected length of the traffic event, in meters.

◆ delay

- (NSTimeInterval) delay
readnonatomicassign

Delay in seconds.

◆ distance

- (SYDistance) distance
readnonatomicassign

Distance of the traffic event from the route start, in meters.

◆ sdkTrafficNotificationInfo

- Traffic:
readwritenonatomicassignimplementation

◆ severity

- (SYTrafficSeverity) severity
readnonatomicassign

Indicates the severity of the traffic event, from "Normal" to "Blocking".

◆ uniqueId

- (NSString*) uniqueId
readnonatomicassign

Event unique id.


The documentation for this class was generated from the following file: