Package com.azure.maps.route.models
Class RouteRange
java.lang.Object
com.azure.maps.route.models.RouteRange
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteRange>
Reachable Range.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteRangefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteRange from the JsonReader.List<com.azure.core.models.GeoPosition> Returns a list ofGeoPositioncoordinates.com.azure.core.models.GeoPositionReturns theGeoPositioncoordinates of the center of the range.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
-
RouteRange
public RouteRange()Creates an instance of RouteRange class.
-
-
Method Details
-
getCenter
public com.azure.core.models.GeoPosition getCenter()Returns theGeoPositioncoordinates of the center of the range.- Returns:
- a
GeoPositionwith the coordinates of the center.
-
getBoundary
Returns a list ofGeoPositioncoordinates.- Returns:
- a list of
GeoPositionrepresenting the boundary.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RouteRange>- Throws:
IOException
-
fromJson
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.
-