Home > @magiclane/maps-sdk > TrafficEvent
TrafficEvent class
Traffic events class
Signature:
export declare class TrafficEvent extends GemAutoreleaseObject Extends: GemAutoreleaseObject
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| number | ||
| number | bigint | ||
| number | Gets affected transport modes as a bitfield | |
| GeographicArea | Gets the geographic area associated with the event | |
| Gets the bounding box of the traffic event. | ||
| number | Gets the estimated delay in seconds caused by the traffic event. | |
| string | Gets the traffic event description | |
| Date | null | Gets end time (UTC) | |
| Gets the traffic event class | ||
| Gets the traffic event severity | ||
| boolean | Checks if event has a sibling on opposite direction | |
| Gets the traffic event image | ||
| Gets the traffic event impact zone | ||
| boolean | Checks if this event is currently active | |
| boolean | Checks if this area-based event is an anti-area | |
| boolean | Checks if this event has expired | |
| boolean | Checks if this traffic event is a roadblock. | |
| boolean | Return true if the traffic event is a user roadblock | |
| number | Gets the length in meters of the road segment affected by the traffic event. | |
| number | ||
| number | bigint | ||
| string | Gets the traffic event preview URL | |
| Gets the traffic event reference point | ||
| Date | null | Gets start time (UTC) |
Methods
Method | Modifiers | Description |
|---|---|---|
Cancel the preview data request | ||
Gets the traffic event image | ||
Gets the traffic event preview data | ||
|