|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.geocode.Route
public class Route
Created by the Directions
class to store information about a single
route in a directions result. Clients should not directly create objects of
this class.
Constructor Summary | |
---|---|
protected |
Route()
|
Method Summary | |
---|---|
Distance |
getDistance()
Returns the total distance of this route. |
Duration |
getDuration()
Returns the total estimated time of this route. |
Placemark |
getEndGeocode()
Returns the ending point of this route. |
LatLng |
getEndLatLng()
Returns a LatLng object for the last point along the polyline for
this route. |
int |
getNumSteps()
Returns the number of steps in this route. |
Placemark |
getStartGeocode()
Returns the starting point of this route. |
Step |
getStep(int index)
Returns the Step object for the ith step in this route. |
java.lang.String |
getSummaryHtml()
Returns an HTML snippet containing a summary of the distance and time for this route. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Route()
Method Detail |
---|
public final Distance getDistance()
public final Duration getDuration()
public final Placemark getEndGeocode()
getEndLatLng()
public final LatLng getEndLatLng()
LatLng
object for the last point along the polyline for
this route. Note that this point may be different from the lat,lng in
getEndGeocode()
because getEndLatLng() always returns a point
that is snapped to the road network. There is no corresponding
getStartLatLng() method because that is identical to calling
Route.getStep(0).getLatLng().
public final int getNumSteps()
public final Placemark getStartGeocode()
getEndLatLng()
public final Step getStep(int index)
index
- The index of the step to return in the route
public final java.lang.String getSummaryHtml()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |