Class RouteSectionTec

java.lang.Object
com.azure.maps.route.models.RouteSectionTec
All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteSectionTec>

public final class RouteSectionTec extends Object implements com.azure.json.JsonSerializable<RouteSectionTec>
Details of the traffic event, using definitions in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can contain effectCode and causes elements.
  • Constructor Details

    • RouteSectionTec

      public RouteSectionTec()
      Creates an instance of RouteSectionTec class.
  • Method Details

    • getEffectCode

      public Integer getEffectCode()
      Get the effectCode property: The effect on the traffic flow. Contains a value in the tec001:EffectCode table, as defined in the [TPEG2-TEC](https://www.iso.org/standard/63116.html) standard. Can be used to color-code traffic events according to severity.
      Returns:
      the effectCode value.
    • getCauses

      public List<RouteSectionTecCause> getCauses()
      Get the causes property: Causes array.
      Returns:
      the causes value.
    • setCauses

      public RouteSectionTec setCauses(List<RouteSectionTecCause> causes)
      Set the causes property: Causes array.
      Parameters:
      causes - the causes value to set.
      Returns:
      the RouteSectionTec object itself.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RouteSectionTec>
      Throws:
      IOException
    • fromJson

      public static RouteSectionTec fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RouteSectionTec from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RouteSectionTec if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the RouteSectionTec.