Package com.azure.maps.route.models
Class RouteGuidance
java.lang.Object
com.azure.maps.route.models.RouteGuidance
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteGuidance>
public final class RouteGuidance
extends Object
implements com.azure.json.JsonSerializable<RouteGuidance>
Contains guidance related elements. This field is present only when guidance was requested and is available.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteGuidancefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteGuidance from the JsonReader.Get the instructionGroups property: Groups a sequence of instruction elements which are related to each other.Get the instructions property: A list of instructions describing maneuvers.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
-
RouteGuidance
public RouteGuidance()Creates an instance of RouteGuidance class.
-
-
Method Details
-
getInstructions
Get the instructions property: A list of instructions describing maneuvers.- Returns:
- the instructions value.
-
getInstructionGroups
Get the instructionGroups property: Groups a sequence of instruction elements which are related to each other.- Returns:
- the instructionGroups value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RouteGuidance>- Throws:
IOException
-
fromJson
Reads an instance of RouteGuidance from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteGuidance 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 RouteGuidance.
-