HERE Android SDK Developer's Guide

TransitLineInfo

The class TransitLineInfo is a member of com.here.android.mpa.mapping .

Class Summary

public final class TransitLineInfo

extends java.lang.Object

Represents information about a public transit line.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in TransitLineInfo
Nested Classes

public static final enumeration TransitLineInfo.Attribute

Represents values describing the attributes of transit line.

Method Summary

Table 2. Methods in TransitLineInfo
Methods

public java.util.EnumSet <Attribute> getAttributes ()

Gets all the Attribute s applicable to the transit line.

public int getColor ()

Gets the current line color for the transit line, an ARGB (Alpha/Red/Green/Blue) value.

public Identifier getId ()

Gets the unique Identifier of the transit line.

public String getInformalName ()

Gets the informal name for the line associated with the transit line.

public String getOfficialName ()

Gets the official name for the line associated with the transit line.

public String getShortName ()

Gets the short name for the line associated with the transit line.

public Identifier getSystemId ()

Gets transit system Identifier for the transit line.

public TransitType getTransitType ()

Gets the TransitType of the transit line.

Class Details

Represents information about a public transit line.

Method Details

public java.util.EnumSet <Attribute> getAttributes ()

Gets all the Attribute s applicable to the transit line.

Returns:

A EnumSet containing all the applicable Attributes.

public int getColor ()

Gets the current line color for the transit line, an ARGB (Alpha/Red/Green/Blue) value.

Returns:

The current 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:

android.graphics.Color

public Identifier getId ()

Gets the unique Identifier of the transit line. TransitDatabase

Returns:

The Identifier

public String getInformalName ()

Gets the informal name for the line associated with the transit line. This text is localized according to the device's locale.

Returns:

The informal name

public String getOfficialName ()

Gets the official name for the line associated with the transit line. This text is localized according to the device's locale.

Returns:

The official name

public String getShortName ()

Gets the short name for the line associated with the transit line. This text is localized according to the device's locale.

Returns:

The short name

public Identifier getSystemId ()

Gets transit system Identifier for the transit line. TransitDatabase

Returns:

the unique object Identifier.

public TransitType getTransitType ()

Gets the TransitType of the transit line.

Returns:

The TransitType

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.