HERE Android SDK Developer's Guide

Maneuver

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

Class Summary

public class Maneuver

extends java.lang.Object

Represents maneuver needed to take during the journey.

[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

public static final enumeration Maneuver.Direction

Constructor Summary

Table 2. Constructors in Maneuver
Constructors

Maneuver (ManeuverImpl impl)

Method Summary

Table 3. Methods in Maneuver
Methods

public boolean equals (Object o)

public Action getAction ()

Gets the action for this maneuver.

public GeoBoundingBox getBoundingBox ()

Gets the GeoBoundingBox of the maneuver - the smallest rectangle that contains maneuver geometry.

public Direction getDirection ()

Gets maneuver direction hint.

public int getDistance ()

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

public long getDuration ()

Gets duration - the amount of time in seconds for a single maneuver.

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

Gets maneuver geometry - list of points that for maneuver polyline.

public String getInstruction ()

Gets verbal description of maneuver.

public String getNextRoadName ()

Gets name of the next road in the route that the maneuver is heading toward.

public String getNextRoadNumber ()

Gets number of the road (such as A5, B49, etc.) towards which the maneuver is heading.

public int hashCode ()

Class Details

Represents maneuver needed to take during the journey.

IMPORTANT: Urban Mobility routing is a Beta feature. The related classes are subject to change without notice.

Constructor Details

Maneuver (ManeuverImpl impl)

Parameters:

  • impl

Method Details

public boolean equals (Object o)

Parameters:

  • o

public Action getAction ()

Gets the action for this maneuver. Does not always indicate a direction.

Returns:

Maneuver.Action to be taken

public GeoBoundingBox getBoundingBox ()

Gets the GeoBoundingBox of the maneuver - the smallest rectangle that contains maneuver geometry.

Returns:

GeoBoundingBox that contains maneuver geometry

public Direction getDirection ()

Gets maneuver direction hint. Can be used to display the appropriate arrow icon for the maneuver.

Returns:

Maneuver.Direction hint

public int getDistance ()

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

Returns:

distance in meters, or -1 if not available

public long getDuration ()

Gets duration - the amount of time in seconds for a single maneuver.

Returns:

duration in seconds

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

Gets maneuver geometry - list of points that for maneuver polyline.

Returns:

list of coordinates

public String getInstruction ()

Gets verbal description of maneuver. Instruction is localized according to Locale.getDefault(). If given language is not supported English version is returned.

Returns:

instruction, or empty string if not available

public String getNextRoadName ()

Gets name of the next road in the route that the maneuver is heading toward.

Returns:

name of the road, or empty string if not available

public String getNextRoadNumber ()

Gets number of the road (such as A5, B49, etc.) towards which the maneuver is heading.

Returns:

number of the road, or empty string if not available

public int hashCode ()

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.