Package com.azure.maps.route.models
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteSectionTecfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteSectionTec from the JsonReader.Get the causes property: Causes array.Get the effectCode property: The effect on the traffic flow.setCauses(List<RouteSectionTecCause> causes) Set the causes property: Causes array.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RouteSectionTec
public RouteSectionTec()Creates an instance of RouteSectionTec class.
-
-
Method Details
-
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
Get the causes property: Causes array.- Returns:
- the causes value.
-
setCauses
Set the causes property: Causes array.- Parameters:
causes- the causes value to set.- Returns:
- the RouteSectionTec object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RouteSectionTec>- Throws:
IOException
-
fromJson
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.
-