Methods
getBoundingBox() → {gem.core.BoundingBox}
Get geographical area of the traffic event
Returns:
- Type:
- gem.
core. BoundingBox
getDelay() → {number}
Gets the estimated delay in seconds caused by the traffic event.
Returns:
- delay in seconds.For roadblocks it will return -1.
- Type:
- number
getDescription() → {string}
Get the description of the traffic event.
Returns:
- Type:
- string
getDistanceToDestination() → {number}
Get the distance in meters from starting point on current route of the traffic event to the destination.
Returns:
- distance in meters
- Type:
- number
getEndTime() → {number}
Gets end time UTC
Returns:
- Epoch time
- Type:
- number
getImage(bitmapContainer)
Get the image for the traffic event
Parameters:
Name | Type | Description |
---|---|---|
bitmapContainer | gem. | output bitmap |
getLength() → {number}
Get the length in meters of the road segment affected by the traffic event.
Returns:
- Type:
- number
getReferencePoint() → {gem.core.Coordinates}
Get the traffic event reference point
Returns:
- reference point
- Type:
- gem.
core. Coordinates
getStartTime() → {number}
Gets start time UTC
Returns:
- Epoch time
- Type:
- number