HERE Android SDK Developer's Guide

Maneuver

The class Maneuver is a member of com.here.android.mpa.routing .

Class Summary

public final class Maneuver

extends java.lang.Object

Represents the action required to leave one street segment and enter the next in the chain of directions that comprises a calculated Route.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in Maneuver
Nested Classes

public static final enumeration Maneuver.Action

Represents values describing the possible actions of a Maneuver.

public static final enumeration Maneuver.Icon

Represents values describing types of Maneuver icons.

public static final enumeration Maneuver.TrafficDirection

Represents values describing possible traffic directions, the side of road on which one must drive.

public static final enumeration Maneuver.Turn

Represents values describing possible turns within a Maneuver.

Method Summary

Table 2. Methods in Maneuver
Methods

public Action getAction ()

Gets the Maneuver.Action required to complete the maneuver.

public int getAngle ()

The angle of the maneuver.

public GeoBoundingBox getBoundingBox ()

Gets the GeoBoundingBox of the maneuver, which is a group of GeoCoordinates forming a polygon

public GeoCoordinate getCoordinate ()

Gets the GeoCoordinate of the maneuver.

public int getDistanceFromPreviousManeuver ()

Gets the distance from the previous maneuver to the current maneuver, in meters.

public int getDistanceFromStart ()

Gets the distance from the start of the route to the maneuver, in meters.

public int getDistanceToNextManeuver ()

Gets the distance to the next maneuver from the current maneuver, in meters.

public Icon getIcon ()

Gets the Maneuver.Icon for the maneuver.

public java.util.List <GeoCoordinate> getManeuverGeometry ()

Puts all points of the maneuvers polyline in the right order into the given collection.

public int getMapOrientation ()

Gets the map orientation at the start of the maneuver, in degrees.

public String getNextRoadName ()

Gets the name of the road to which the maneuver leads.

public String getNextRoadNumber ()

Gets the road number to which the maneuver leads.

public java.util.List <RoadElement> getRoadElements ()

Returns a list of RoadElements within the maneuver.

public String getRoadName ()

Gets the name of the road on which the maneuver takes place.

public String getRoadNumber ()

Gets the road number on which the maneuver takes place, a short label for the road or highway (e.g.

public java.util.List <RouteElement> getRouteElements ()

Returns a list of RouteElement within the maneuver

public Signpost getSignpost ()

Gets the the signpost for this maneuver.

public Date getStartTime ()

Gets the (estimated) time at which the maneuver starts.

public TrafficDirection getTrafficDirection ()

Return traffic direction.

public TransportMode getTransportMode ()

Gets the RouteOptions.TransportMode used for the maneuver.

public Turn getTurn ()

Gets the Maneuver.Turn required to complete the maneuver.

Class Details

Represents the action required to leave one street segment and enter the next in the chain of directions that comprises a calculated Route.

Method Details

public Action getAction ()

Gets the Maneuver.Action required to complete the maneuver.

Returns:

The Maneuver.Action

public int getAngle ()

The angle of the maneuver.

Returns:

The angle in degrees from end of the start road to the start of the end road. Angle has a value from 0, 360, north is up, clockwise

public GeoBoundingBox getBoundingBox ()

Gets the GeoBoundingBox of the maneuver, which is a group of GeoCoordinates forming a polygon

Returns:

The GeoBoundingBox

public GeoCoordinate getCoordinate ()

Gets the GeoCoordinate of the maneuver.

Returns:

The GeoCoordinate

public int getDistanceFromPreviousManeuver ()

Gets the distance from the previous maneuver to the current maneuver, in meters.

Returns:

The distance

public int getDistanceFromStart ()

Gets the distance from the start of the route to the maneuver, in meters.

Returns:

The distance

public int getDistanceToNextManeuver ()

Gets the distance to the next maneuver from the current maneuver, in meters.

Returns:

The distance

public Icon getIcon ()

Gets the Maneuver.Icon for the maneuver.

Returns:

The Maneuver.Icon

public java.util.List <GeoCoordinate> getManeuverGeometry ()

Puts all points of the maneuvers polyline in the right order into the given collection.

Returns:

a collection of GeoCoordinates.

public int getMapOrientation ()

Gets the map orientation at the start of the maneuver, in degrees.

Note: a returned value of zero represents true-north, with increasing values representing a clockwise progression of map orientation.

Returns:

The orientation

public String getNextRoadName ()

Gets the name of the road to which the maneuver leads.

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.

Returns:

The next road name

public String getNextRoadNumber ()

Gets the road number to which the maneuver leads.

Returns:

The road number of the next road element

public java.util.List <RoadElement> getRoadElements ()

Returns a list of RoadElements within the maneuver.

Returns:

a collection of RoadElements.

public String getRoadName ()

Gets the name of the road on which the maneuver takes place.

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.

Returns:

The road name

public String getRoadNumber ()

Gets the road number on which the maneuver takes place, a short label for the road or highway (e.g. 5 for Interstate 5).

If the road number is unknown, this method will return an empty string.

Returns:

The road number

public java.util.List <RouteElement> getRouteElements ()

Returns a list of RouteElement within the maneuver

Returns:

a collection of RouteElement.

public Signpost getSignpost ()

Gets the the signpost for this maneuver. If the signpost is not valid, a NULL is returned.

Returns:

Signpost if a valid signpost exists. NULL Otherwise.

public Date getStartTime ()

Gets the (estimated) time at which the maneuver starts.

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.

Returns:

The start time, or null if not available

See also:

setTime(Date, TimeType)

public TrafficDirection getTrafficDirection ()

Return traffic direction.

Returns:

LEFT, if left side traffic, RIGHT if right side traffic.

public TransportMode getTransportMode ()

Gets the 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.

Returns:

The RouteOptions.TransportMode

public Turn getTurn ()

Gets the Maneuver.Turn required to complete the maneuver.

Returns:

The Maneuver.Turn

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.