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