Package com.azure.maps.route.models
Class RouteSummary
java.lang.Object
com.azure.maps.route.models.RouteSummary
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RouteSummary>
public final class RouteSummary
extends Object
implements com.azure.json.JsonSerializable<RouteSummary>
Summary object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteSummaryfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RouteSummary from the JsonReader.Get the arrivalTime property: The estimated arrival time for the route or leg.Get the departureTime property: The estimated departure time for the route or leg.Get the lengthInMeters property: Length In Meters property.Get the trafficDelayInSeconds property: Estimated delay in seconds caused by the real-time incident(s) according to traffic information.Get the travelTimeInSeconds property: Estimated travel time in seconds property that includes the delay due to real-time traffic.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
-
RouteSummary
public RouteSummary()Creates an instance of RouteSummary class.
-
-
Method Details
-
getLengthInMeters
Get the lengthInMeters property: Length In Meters property.- Returns:
- the lengthInMeters value.
-
getTravelTimeInSeconds
Get the travelTimeInSeconds property: Estimated travel time in seconds property that includes the delay due to real-time traffic. Note that even when traffic=false travelTimeInSeconds still includes the delay due to traffic. If DepartAt is in the future, travel time is calculated using time-dependent historic traffic data.- Returns:
- the travelTimeInSeconds value.
-
getTrafficDelayInSeconds
Get the trafficDelayInSeconds property: Estimated delay in seconds caused by the real-time incident(s) according to traffic information. For routes planned with departure time in the future, delays is always 0. To return additional travel times using different types of traffic information, parameter computeTravelTimeFor=all needs to be added.- Returns:
- the trafficDelayInSeconds value.
-
getDepartureTime
Get the departureTime property: The estimated departure time for the route or leg. Time is in UTC.- Returns:
- the departureTime value.
-
getArrivalTime
Get the arrivalTime property: The estimated arrival time for the route or leg. Time is in UTC.- Returns:
- the arrivalTime value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RouteSummary>- Throws:
IOException
-
fromJson
Reads an instance of RouteSummary from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RouteSummary 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 RouteSummary.
-