public class DirectionsStep extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
DirectionsStep()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
Distance |
getDistance()
The distance covered by this step.
|
Duration |
getDuration()
The typical time required to perform this step in seconds and in text form.
|
LatLng |
getEnd_Location()
The ending location of this step.
|
String |
getInstructions()
Instructions for this step.
|
JsArray<LatLng> |
getPath()
A sequence of LatLngs describing the course of this step.
|
LatLng |
getStart_Location()
The starting location of this step.
|
TravelMode |
getTravelMode()
The mode of travel used in this step.
|
static DirectionsStep |
newInstance()
A single DirectionsStep in a DirectionsResult.
|
void |
setDistance(Distance distance)
The distance covered by this step.
|
void |
setDuration(Duration duration)
The typical time required to perform this step in seconds and in text form.
|
void |
setEnd_Location(LatLng end_location)
The ending location of this step.
|
void |
setInstructions(String instructions)
Instructions for this step.
|
void |
setPath(JsArray<LatLng> path)
A sequence of LatLngs describing the course of this step.
|
void |
setStart_Location(LatLng start_location)
The starting location of this step.
|
void |
setTravel_Mode(TravelMode travel_mode)
The mode of travel used in this step.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final DirectionsStep newInstance()
public final void setDistance(Distance distance)
distance
- public final Distance getDistance()
public final void setDuration(Duration duration)
duration
- public final Duration getDuration()
public final void setEnd_Location(LatLng end_location)
end_location
- public final LatLng getEnd_Location()
public final void setInstructions(String instructions)
instructions
- public final String getInstructions()
public final void setPath(JsArray<LatLng> path)
path
- public final JsArray<LatLng> getPath()
public final void setStart_Location(LatLng start_location)
start_location
- public final LatLng getStart_Location()
public final void setTravel_Mode(TravelMode travel_mode)
travel_mode
- public final TravelMode getTravelMode()
Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.