Class TrafficState

java.lang.Object
com.azure.maps.traffic.models.TrafficState

public final class TrafficState extends Object
Traffic State information.
  • Method Details

    • getTrafficAge

      public Integer getTrafficAge()
      Get the trafficAge property: The elapsed time (in seconds) from the Traffic Model ID creation.
      Returns:
      the trafficAge value.
    • getTrafficModelId

      public String 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.