HERE Android SDK Developer's Guide

TransitDatabase

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

Class Summary

public final class TransitDatabase

extends java.lang.Object

Represents an interface used to get information about public transit elements.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in TransitDatabase
Nested Classes

public static final enumeration TransitDatabase.Error

Represents values describing possible kinds of errors that can be encountered while initiating an asynchronous request to a TransitDatabase.

public static abstract interface TransitDatabase.OnGetTransitInfoListener

Represents a listener to provide information about TransitDatabase events.

public static abstract class TransitDatabase.OnGetTransitInfoListenerAdapter

Represents a listener to provide information about TransitDatabase events.

Constructor Summary

Table 2. Constructors in TransitDatabase
Constructors

TransitDatabase ()

Constructor.

Method Summary

Table 3. Methods in TransitDatabase
Methods

public void cancel ()

Cancels the current request for transit information.

public Error getAccessInfo (Identifier id, OnGetTransitInfoListener listener)

Initiates an asynchronous request for information about a transit access.

public Error getLineInfo (Identifier id, OnGetTransitInfoListener listener)

Initiates an asynchronous request for information about a transit line.

public Error getStopInfo (Identifier id, OnGetTransitInfoListener listener)

Initiates an asynchronous request for information about a transit stop.

public Error getSystemInfo (Identifier id, OnGetTransitInfoListener listener)

Initiates an asynchronous request for information about a transit system.

Class Details

Represents an interface used to get information about public transit elements.

Constructor Details

TransitDatabase ()

Constructor. Instantiates an instance of the transit database.

Method Details

public void cancel ()

Cancels the current request for transit information.

public Error getAccessInfo (Identifier id, OnGetTransitInfoListener listener)

Initiates an asynchronous request for information about a transit access.

Parameters:

  • id

    An unique Identifier for the transit access

  • listener

    An OnGetTransitInfoListener to provide information about TransitDatabase events

Returns:

The appropriate Error value, which could be:

See also:

getId()

public Error getLineInfo (Identifier id, OnGetTransitInfoListener listener)

Initiates an asynchronous request for information about a transit line.

Parameters:

  • id

    An unique Identifier for the transit line

  • listener

    An OnGetTransitInfoListener to provide information about TransitDatabase events

Returns:

The appropriate Error value, which could be:

See also:

getId()

getLineId()

getLineId()

getLines()

public Error getStopInfo (Identifier id, OnGetTransitInfoListener listener)

Initiates an asynchronous request for information about a transit stop.

Parameters:

  • id

    An unique Identifier for the transit stop

  • listener

    An OnGetTransitInfoListener to provide information about TransitDatabase events

Returns:

The appropriate Error value, which could be:

See also:

getId()

getStopId()

public Error getSystemInfo (Identifier id, OnGetTransitInfoListener listener)

Initiates an asynchronous request for information about a transit system.

Parameters:

  • id

    An unique Identifier for the transit system.

  • listener

    An OnGetTransitInfoListener to provide information about TransitDatabase events

Returns:

The appropriate Error value, which could be:

See also:

getSystemId()