Package com.azure.maps.route.models
Class RouteLeg
java.lang.Object
com.azure.maps.route.models.RouteLeg
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteLeg>
A description of a part of a route, comprised of a list of points. Each additional waypoint provided in the request
will result in an additional leg in the returned route.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteLegfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteLeg from the JsonReader.List<com.azure.core.models.GeoPosition> Returns a list ofGeoPositioncoordinates.Get the summary property: Summary object for route section.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
-
RouteLeg
public RouteLeg()Creates an instance of RouteLeg class.
-
-
Method Details
-
getSummary
Get the summary property: Summary object for route section.- Returns:
- the summary value.
-
getPoints
Returns a list ofGeoPositioncoordinates.- Returns:
- a list of
GeoPositioncoordinates.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RouteLeg>- Throws:
IOException
-
fromJson
Reads an instance of RouteLeg from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteLeg 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 RouteLeg.
-