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()

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.