Package com.google.maps.model
Class DirectionsRoute
- java.lang.Object
-
- com.google.maps.model.DirectionsRoute
-
- All Implemented Interfaces:
java.io.Serializable
public class DirectionsRoute extends java.lang.Object implements java.io.Serializable
A Directions API result. When the Directions API returns results, it places them within a routes array. Even if the service returns no results (such as if the origin and/or destination doesn't exist) it still returns an empty routes array.Please see Routes for more detail.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Bounds
bounds
The viewport bounding box of the overview_polyline.java.lang.String
copyrights
Copyrights text to be displayed for this route.Fare
fare
Information about the fare (that is, the ticket costs) on this route.DirectionsLeg[]
legs
Information about legs of the route, between locations within the route.EncodedPolyline
overviewPolyline
An approximate (smoothed) path of the resulting directions.java.lang.String
summary
A short textual description for the route, suitable for naming and disambiguating the route from alternatives.java.lang.String[]
warnings
Warnings to be displayed when showing these directions.int[]
waypointOrder
Indicates the order of any waypoints in the calculated route.
-
Constructor Summary
Constructors Constructor Description DirectionsRoute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
summary
public java.lang.String summary
A short textual description for the route, suitable for naming and disambiguating the route from alternatives.
-
legs
public DirectionsLeg[] legs
Information about legs of the route, between locations within the 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.)
-
waypointOrder
public int[] waypointOrder
Indicates the order of any waypoints in the calculated route. This waypoints may be reordered if the request was passedoptimize:true
within itswaypoints
parameter.
-
overviewPolyline
public EncodedPolyline overviewPolyline
An approximate (smoothed) path of the resulting directions.
-
bounds
public Bounds bounds
The viewport bounding box of the overview_polyline.
-
copyrights
public java.lang.String copyrights
Copyrights text to be displayed for this route. You must handle and display this information yourself.
-
fare
public Fare fare
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.
-
warnings
public java.lang.String[] warnings
Warnings to be displayed when showing these directions. You must handle and display these warnings yourself.
-
-