Class RouteRange

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

public final class RouteRange extends Object implements com.azure.json.JsonSerializable<RouteRange>
Reachable Range.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of RouteRange class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static RouteRange
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RouteRange from the JsonReader.
    List<com.azure.core.models.GeoPosition>
    Returns a list of GeoPosition coordinates.
    com.azure.core.models.GeoPosition
    Returns the GeoPosition coordinates of the center of the range.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • RouteRange

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

    • getCenter

      public com.azure.core.models.GeoPosition getCenter()
      Returns the GeoPosition coordinates of the center of the range.
      Returns:
      a GeoPosition with the coordinates of the center.
    • getBoundary

      public List<com.azure.core.models.GeoPosition> getBoundary()
      Returns a list of GeoPosition coordinates.
      Returns:
      a list of GeoPosition representing the boundary.
    • toJson

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

      public static RouteRange fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RouteRange from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RouteRange 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 RouteRange.