public final class Maneuver
extends java.lang.Object
Route
.Modifier and Type | Class and Description |
---|---|
static class |
Maneuver.Action
Represents values describing the possible actions of a
Maneuver . |
static class |
Maneuver.Icon
Represents values describing types of
Maneuver icons. |
static class |
Maneuver.TrafficDirection
Represents values describing possible traffic directions, the side of road on which one must
drive.
|
static class |
Maneuver.Turn
Represents values describing possible turns within a
Maneuver . |
Modifier and Type | Method and Description |
---|---|
Maneuver.Action |
getAction()
Gets the
Maneuver.Action required to complete the maneuver. |
int |
getAngle()
The angle of the maneuver.
|
GeoBoundingBox |
getBoundingBox()
Gets the
GeoBoundingBox of the maneuver, which is a group of GeoCoordinates forming a
polygon |
GeoCoordinate |
getCoordinate()
Gets the
GeoCoordinate of the maneuver. |
int |
getDistanceFromPreviousManeuver()
Gets the distance from the previous maneuver to the current maneuver, in meters.
|
int |
getDistanceFromStart()
Gets the distance from the start of the route to the maneuver, in meters.
|
int |
getDistanceToNextManeuver()
Gets the distance to the next maneuver from the current maneuver, in meters.
|
Maneuver.Icon |
getIcon()
Gets the
Maneuver.Icon for the maneuver. |
java.util.List<GeoCoordinate> |
getManeuverGeometry()
Puts all points of the maneuvers polyline in the right order into the given collection.
|
int |
getMapOrientation()
Gets the map orientation at the start of the maneuver, in degrees.
|
java.lang.String |
getNextRoadName()
Gets the name of the road to which the maneuver leads.
|
java.lang.String |
getNextRoadNumber()
Gets the road number to which the maneuver leads.
|
java.util.List<RoadElement> |
getRoadElements()
Returns a list of
RoadElement s within the maneuver. |
java.lang.String |
getRoadName()
Gets the name of the road on which the maneuver takes place.
|
java.lang.String |
getRoadNumber()
Gets the road number on which the maneuver takes place, a short label for the road or highway
(e.g.
|
java.util.List<RouteElement> |
getRouteElements()
Returns a list of
RouteElement within the maneuver |
Signpost |
getSignpost()
Gets the the signpost for this maneuver.
|
java.util.Date |
getStartTime()
Gets the (estimated) time at which the maneuver starts.
|
Maneuver.TrafficDirection |
getTrafficDirection()
Return traffic direction.
|
RouteOptions.TransportMode |
getTransportMode()
Gets the
RouteOptions.TransportMode used for the maneuver. |
Maneuver.Turn |
getTurn()
Gets the
Maneuver.Turn required to complete the maneuver. |
public GeoCoordinate getCoordinate()
GeoCoordinate
of the maneuver.GeoCoordinate
public GeoBoundingBox getBoundingBox()
GeoBoundingBox
of the maneuver, which is a group of GeoCoordinates forming a
polygonGeoBoundingBox
public Maneuver.Action getAction()
Maneuver.Action
required to complete the maneuver.Maneuver.Action
public Maneuver.Turn getTurn()
Maneuver.Turn
required to complete the maneuver.Maneuver.Turn
public RouteOptions.TransportMode getTransportMode()
RouteOptions.TransportMode
used for the maneuver. This might differ from the
RouteOptions.TransportMode
used when calculating the Route
with which the particular
maneuver is associated.RouteOptions.TransportMode
public int getDistanceFromStart()
public int getDistanceFromPreviousManeuver()
public int getDistanceToNextManeuver()
public java.lang.String getRoadName()
Road name is provided if available for a given Maneuver
. If not provided, it should
be left blank. It's erroneous to assume that it is the same as prior maneuvers.
public java.lang.String getNextRoadName()
Next road name is provided if available for a given Maneuver
. If not provided, it
should be left blank. It's erroneous to assume that it is the same as prior maneuvers.
public java.lang.String getRoadNumber()
If the road number is unknown, this method will return an empty string.
public java.lang.String getNextRoadNumber()
public Maneuver.TrafficDirection getTrafficDirection()
public Maneuver.Icon getIcon()
Maneuver.Icon
for the maneuver.Maneuver.Icon
public int getAngle()
public int getMapOrientation()
Note: a returned value of zero represents true-north, with increasing values representing a clockwise progression of map orientation.
public java.util.Date getStartTime()
If no departure time was set for the RouteOptions
associated with the maneuver, then
the time is relative to the system time when the route calculation took place. Otherwise, the
times are relative to the specified departure time.
null
if not availableRouteOptions.setTime(Date, TimeType)
public java.util.List<RoadElement> getRoadElements()
RoadElement
s within the maneuver.RoadElement
s.public java.util.List<RouteElement> getRouteElements()
RouteElement
within the maneuverRouteElement
.public java.util.List<GeoCoordinate> getManeuverGeometry()
GeoCoordinates
.public Signpost getSignpost()