public class RouteLeg
extends java.lang.Object
DirectionsWaypoint.| Constructor and Description |
|---|
RouteLeg()
Empty constructor
|
| Modifier and Type | Method and Description |
|---|---|
LegAnnotation |
getAnnotation()
An
LegAnnotation that contains additional details about each line segment along the route geometry. |
double |
getDistance()
The distance traveled from one waypoint to another.
|
double |
getDuration()
The estimated travel time from one waypoint to another.
|
java.util.List<LegStep> |
getSteps()
Gives a List including all the steps to get from one waypoint to another.
|
java.lang.String |
getSummary()
A short human-readable summary of major roads traversed.
|
void |
setAnnotation(LegAnnotation annotation)
Provide An
LegAnnotation that contains additional details about each line segment along the route geometry. |
void |
setDistance(double distance)
The distance traveled from one waypoint to another.
|
void |
setDuration(double duration)
The estimated travel time from one waypoint to another.
|
void |
setSteps(java.util.List<LegStep> steps)
Gives a List including all the steps to get from one waypoint to another.
|
void |
setSummary(java.lang.String summary)
A short human-readable summary of major roads traversed.
|
public double getDistance()
public void setDistance(double distance)
distance - a double number with unit meters.public double getDuration()
public void setDuration(double duration)
duration - a double number with unit seconds.public java.lang.String getSummary()
public void setSummary(java.lang.String summary)
summary - a String with a human-readable summary.public java.util.List<LegStep> getSteps()
LegStep.public void setSteps(java.util.List<LegStep> steps)
steps - a List of LegStep.public LegAnnotation getAnnotation()
LegAnnotation that contains additional details about each line segment along the route geometry. If
you'd like to receiving this, you must request it inside your Directions request before executing the call.LegAnnotation object.public void setAnnotation(LegAnnotation annotation)
LegAnnotation that contains additional details about each line segment along the route geometry.annotation - a LegAnnotation object.