HERE Android SDK Developer's Guide

TransitManeuver

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

Class Summary

public final class TransitManeuver

extends com.here.android.mpa.routing.Maneuver, java.lang.Object

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

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in TransitManeuver
Nested Classes

public static final enumeration TransitManeuver.TransitLineStyle

Represents values describing different line styles.

Method Summary

Table 2. Methods in TransitManeuver
Methods

public String getArrivalStopName ()

Gets the arrival stop name for the TransitManeuver .

public String getDepartureStopName ()

Gets the departure stop name for the TransitManeuver .

public String getLineName ()

Gets the line name for the TransitManeuver .

public TransitLineStyle getLineStyle ()

Gets the TransitLineStyle that is typical of the way in which TransitManeuver lines are drawn on maps of the local operator.

public int getPrimaryLineColor ()

Gets the primary color of the TransitManeuver in the local public transit operator's color scheme.

public int getSecondaryLineColor ()

Gets the secondary color of the TransitManeuver in the local public transit operator's color scheme.

public String getSystemInformalName ()

Gets the informal name of the system operating the TransitManeuver .

public String getSystemOfficialName ()

Gets the name of the system operating the TransitManeuver .

public String getSystemShortName ()

Gets the name, in a shorter or abbreviated version if available, of the system operating the TransitManeuver .

public String getTerminusStopName ()

Gets the terminus stop name for the TransitManeuver .

public java.util.List <TransitRouteElement> getTransitRouteElements ()

Gets a list of TransitRouteElement of the TransitManeuver.

public int getTransitTravelTime ()

Gets the transit travel time.

public TransitType getTransitType ()

Gets the TransitType of the transit system offering service for the TransitManeuver .

public String getTransitTypeName ()

Gets the transit type of the transit system offering service for the TransitManeuver , as a String in the transit operator's local vocabulary.

public boolean hasPrimaryLineColor ()

Returns whether element's primary line color is available.

public boolean hasSecondaryLineColor ()

Returns whether element's secondary line color is available.

Class Details

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

Method Details

public String getArrivalStopName ()

Gets the arrival stop name for the TransitManeuver .

Returns:

The arrival stop name

public String getDepartureStopName ()

Gets the departure stop name for the TransitManeuver .

Returns:

The departure stop name

public String getLineName ()

Gets the line name for the TransitManeuver .

Returns:

The line name

public TransitLineStyle getLineStyle ()

Gets the TransitLineStyle that is typical of the way in which TransitManeuver lines are drawn on maps of the local operator.

Returns:

The TransitLineStyle

public int getPrimaryLineColor ()

Gets the primary color of the TransitManeuver in the local public transit operator's color scheme.

Returns:

The ARGB integer color value. The packed integer is made up of 4 bytes: alpha, red, green, blue. Each color component has a value range from [0..255] with 0 meaning no contribution for that component, and 255 meaning 100% contribution

See also:

getPrimaryLineColor()

public int getSecondaryLineColor ()

Gets the secondary color of the TransitManeuver in the local public transit operator's color scheme.

Returns:

The ARGB integer color value. The packed integer is made up of 4 bytes: alpha, red, green, blue. Each color component has a value range from [0..255] with 0 meaning no contribution for that component, and 255 meaning 100% contribution

See also:

getSecondaryLineColor()

public String getSystemInformalName ()

Gets the informal name of the system operating the TransitManeuver . if available

Returns:

The informal transit system name, e.g. "SMGN".

See also:

getSystemInformalName()

public String getSystemOfficialName ()

Gets the name of the system operating the TransitManeuver .

Returns:

The transit system name

See also:

getSystemOfficialName()

public String getSystemShortName ()

Gets the name, in a shorter or abbreviated version if available, of the system operating the TransitManeuver .

Returns:

The transit system name in shortened form

See also:

getSystemShortName()

public String getTerminusStopName ()

Gets the terminus stop name for the TransitManeuver .

Returns:

The terminus stop name

public java.util.List <TransitRouteElement> getTransitRouteElements ()

Gets a list of TransitRouteElement of the TransitManeuver.

Returns:

a list of TransitRouteElement

public int getTransitTravelTime ()

Gets the transit travel time. Unit is seconds.

Returns:

transit travel time in seconds

public TransitType getTransitType ()

Gets the TransitType of the transit system offering service for the TransitManeuver .

Returns:

The TransitType

public String getTransitTypeName ()

Gets the transit type of the transit system offering service for the TransitManeuver , as a String in the transit operator's local vocabulary.

Returns:

The transit type name

See also:

getTransitType()

public boolean hasPrimaryLineColor ()

Returns whether element's primary line color is available.

Returns:

true if color is available, false - otherwise

public boolean hasSecondaryLineColor ()

Returns whether element's secondary line color is available.

Returns:

true if color is available, false - otherwise

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.