public class DirectionsRoute
extends java.lang.Object
Please see Routes for more detail.
| Modifier and Type | Field and Description |
|---|---|
Bounds |
bounds
bounds contains the viewport bounding box of the overview_polyline. |
java.lang.String |
copyrights
copyrights contains the copyrights text to be displayed for this route. |
Fare |
fare
fare contains information about the fare (that is, the ticket costs) on this route. |
DirectionsLeg[] |
legs
legs contains information about a leg of the route, between two locations within the
given route. |
EncodedPolyline |
overviewPolyline
overviewPolyline contains an object holding an array of encoded points that represent
an approximate (smoothed) path of the resulting directions. |
java.lang.String |
summary
summary contains a short textual description for the route, suitable for naming and
disambiguating the route from alternatives. |
java.lang.String[] |
warnings
warnings contains an array of warnings to be displayed when showing these directions. |
int[] |
waypointOrder
waypointOrder contains an array indicating the order of any waypoints in the
calculated route. |
| Constructor and Description |
|---|
DirectionsRoute() |
public java.lang.String summary
summary contains a short textual description for the route, suitable for naming and
disambiguating the route from alternatives.public DirectionsLeg[] legs
legs contains information about a leg of the route, between two locations within the
given route. A separate leg will be present for each waypoint or destination specified. (A
route with no waypoints will contain exactly one leg within the legs array.)public int[] waypointOrder
waypointOrder contains an array indicating the order of any waypoints in the
calculated route. This waypoints may be reordered if the request was passed
optimize:true within its waypoints parameter.public EncodedPolyline overviewPolyline
overviewPolyline contains an object holding an array of encoded points that represent
an approximate (smoothed) path of the resulting directions.public Bounds bounds
bounds contains the viewport bounding box of the overview_polyline.public java.lang.String copyrights
copyrights contains the copyrights text to be displayed for this route. You must
handle and display this information yourself.public Fare fare
fare contains information about the fare (that is, the ticket costs) on this route.
This property is only returned for transit directions, and only for routes where fare
information is available for all transit legs.public java.lang.String[] warnings
warnings contains an array of warnings to be displayed when showing these directions.
You must handle and display these warnings yourself.