public class RouteLeg extends 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.
|
List<LegStep> |
getSteps()
Gives a List including all the steps to get from one waypoint to another.
|
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(List<LegStep> steps)
Gives a List including all the steps to get from one waypoint to another.
|
void |
setSummary(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 String getSummary()
public void setSummary(String summary)
summary
- a String with a human-readable summary.public List<LegStep> getSteps()
LegStep
.public void setSteps(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.© 2015–2016 Mapbox. All rights reserved.