C# SDK
STmcEvent Class Reference

The STmcEvent class defines a single TMC event on a location. More...

Public Types

enum  EventCode {
  TMCTrafficProblem = 0, TMCQueuingProblem = 1, TMCSlowTraffic = 2, TMCHeavyTraffic = 3,
  TMCStationaryTraffic = 4, TMCCongestion = 5, TMCNormalTraffic = 6, TMCNoProblems = 7,
  TMCAccidentCleared = 8, TMCAccidentIncident = 9, TMCClosure = 10, TMCBridgeTunelBlocked = 11,
  TMCSeviceClosed = 12, TMCServiceReopened = 13, TMCLaneClosure = 14, TMCRoadWorks = 15,
  TMCObstacle = 16, TMCRoadConditions = 17, TMCWeather = 18, TMCWind = 19,
  TMCVisibility = 20, TMCTemperature = 21, TMCActivity = 22, TMCDelay = 23,
  TMCDangerousVehicle = 24, TMCExceptionalLoadsVehicles = 25, TMCTrafficEquipment = 26, TMCSizeAndWeightLimits = 27,
  TMCParkingRestrictions = 28, TMCReferenceToAudioBroadcast = 29, TMCAdditionalInfo = 30
}
 List of the possible Event codes. More...
 

Public Member Functions

 STmcEvent ()
 Creates the instance of the STmcEvent class with default values. More...
 

Static Public Member Functions

static int SizeOf ()
 

Public Attributes

ushort wID = 0
 Returns the ID number that was assigned to this event by applicaiton. The ID can be later used to delete the event. More...
 
int lX = 0
 Determines geographical longitude (X coordinate) of the event in world degrees multiplied by 100 000. More...
 
int lY = 0
 Determines geographical latitude (Y coordinate) of the event in world degrees multiplied by 100 000. More...
 
int nEventCode = -1
 Code of the TMC event from the EventCode enumeration More...
 
int bUserAvoid = 1
 Defines if the route computing should always avoid this event. More...
 
uint nValidityYear = 0
 Year. Validity time, till which the event remains active. After this time is the event deleted. The events are not stored after application exit. More...
 
byte nValidityMonth = 0
 Month. Validity time, till which the event remains active. After this time is the event deleted. The events are not stored after application exit. More...
 
byte nValidityDay = 0
 Day. Validity time, till which the event remains active. After this time is the event deleted. The events are not stored after application exit. More...
 
byte nValidityHour = 0
 Hour. Validity time, till which the event remains active. After this time is the event deleted. The events are not stored after application exit. More...
 
byte nValidityMinute = 0
 Minute. Validity time, till which the event remains active. After this time is the event deleted. The events are not stored after application exit. More...
 

Detailed Description

The STmcEvent class defines a single TMC event on a location.