Package com.azure.maps.traffic.models
Class TrafficState
java.lang.Object
com.azure.maps.traffic.models.TrafficState
Traffic State information.
-
Method Summary
Modifier and TypeMethodDescriptionGet the trafficAge property: The elapsed time (in seconds) from the Traffic Model ID creation.Get the trafficModelId property: The unique ID called Traffic Model ID is used in calls to Traffic Incident services.
-
Method Details
-
getTrafficAge
Get the trafficAge property: The elapsed time (in seconds) from the Traffic Model ID creation.- Returns:
- the trafficAge value.
-
getTrafficModelId
Get the trafficModelId property: The unique ID called Traffic Model ID is used in calls to Traffic Incident services. It allows to obtain information from particular traffic updates. Traffic Model ID is updated every minute, and is valid for two minutes before it times out.- Returns:
- the trafficModelId value.
-