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 Details

    • RouteGuidance

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

    • getInstructions

      public List<RouteInstruction> getInstructions()
      Get the instructions property: A list of instructions describing maneuvers.
      Returns:
      the instructions value.
    • getInstructionGroups

      public List<RouteInstructionGroup> getInstructionGroups()
      Get the instructionGroups property: Groups a sequence of instruction elements which are related to each other.
      Returns:
      the instructionGroups value.
    • toJson

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

      public static RouteGuidance fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.