Home > @magiclane/maps-sdk > TrafficParameters > (constructor)
TrafficParameters.(constructor)
Creates a new TrafficParameters instance.
The API user typically does not create instances directly.
Signature:
constructor(id: string, iconId: number, alertc: number, delay: number, description: string, startStamp: Date, endStamp: Date, from: string, to: string, transportMode: RouteTransportMode);Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
string |
Unique identifier |
|
iconId |
number |
Icon identifier |
|
alertc |
number |
Alert-C code |
|
delay |
number |
Delay in seconds |
|
description |
string |
Description of the traffic event |
|
startStamp |
Date |
Start timestamp when the traffic event becomes active |
|
endStamp |
Date |
End timestamp when the traffic event ends |
|
from |
string |
The location where the traffic event starts |
|
to |
string |
The location where the traffic event ends |
|
transportMode |
The transport mode for which the traffic event is relevant |