HERE Android SDK Developer's Guide

Transport

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

Class Summary

public class Transport

extends java.lang.Object

Represents a kind of transport (e.g.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in Transport
Methods

public boolean equals (Object o)

public FeatureAvailability getBarrierFree ()

Indicates if transport is barrier free.

public FeatureAvailability getBikeAllowed ()

Indicates if bikes are allowed for this transport.

public int getColor ()

Gets the transport color.

public String getDirection ()

Gets the transport direction if applicable (e.g.

public String getName ()

Gets the transport name.

public Operator getOperator ()

Gets the operator serving the transport.

public int getOutlineColor ()

Gets the color of the border around the transport name.

public int getTextColor ()

Gets the text color that should get used when the transport color is used as background color.

public TransportType getTransportType ()

Gets the type of transport.

public String getTransportTypeName ()

Gets the locally used name for this transport type.

public int hashCode ()

Class Details

Represents a kind of transport (e.g. transit line or bike) with its properties like name, color that can be used to display on the map, or operator that serves given transport.

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

Method Details

public boolean equals (Object o)

Parameters:

  • o

public FeatureAvailability getBarrierFree ()

Indicates if transport is barrier free.

Returns:

FeatureAvailability flag indicating if transport is barrier free

public FeatureAvailability getBikeAllowed ()

Indicates if bikes are allowed for this transport.

Returns:

FeatureAvailability flag indicating if bikes are allowed for this transport

public int getColor ()

Gets the transport color. See android.graphics.android.graphics.Color for more details on color format.

Returns:

transport color, or Color.BLACK if none

public String getDirection ()

Gets the transport direction if applicable (e.g. bus which goes to "Flughafen Tegel Airport").

Returns:

the transport direction, or empty string if not available

public String getName ()

Gets the transport name. Name is localized according to Locale.getDefault(). If given language is not supported English version is returned.

Returns:

the transport name, or empty string if not available

public Operator getOperator ()

Gets the operator serving the transport.

Returns:

the transport operator, or null if not available

public int getOutlineColor ()

Gets the color of the border around the transport name. See android.graphics.android.graphics.Color for more details on color format.

Returns:

transport border color, or Color.TRANSPARENT if none

public int getTextColor ()

Gets the text color that should get used when the transport color is used as background color. See android.graphics.android.graphics.Color for more details on color format.

Returns:

text color, or Color.BLACK if none

public TransportType getTransportType ()

Gets the type of transport.

Returns:

TransportType representing kind of transport

public String getTransportTypeName ()

Gets the locally used name for this transport type. Name is localized according to Locale.getDefault(). If given language is not supported English version is returned.

Returns:

locally used transport type name 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.