HERE Android SDK Developer's Guide

TransitSchedulePage

The class TransitSchedulePage is a member of com.here.android.mpa.search .

Class Summary

public class TransitSchedulePage

extends java.lang.Object

Represents departure information for a public transport stop/station.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in TransitSchedulePage
Methods

public boolean equals (Object obj)

For documentation, see java.lang.Object

public java.util.List <TransitDeparture> getItems ()

Gets the list of departures.

public java.util.Map <java.lang.String, com.here.android.mpa.search.TransitLine> getLines ()

Gets the map collection of transit line names to TransitLine information.

public TransitSchedulePageRequest getNextPageRequest ()

Gets the TransitSchedulePageRequest for requesting the next page of the TransitSchedulePage .

public int getOffsetCount ()

Gets the collection offset count for the current page of the TransitSchedulePage .

public java.util.Map <java.lang.String, com.here.android.mpa.search.TransitOperator> getOperators ()

Gets the map collection of transit line operators to TransitOperator information.

public TransitSchedulePageRequest getPreviousPageRequest ()

Gets the TransitSchedulePageRequest for requesting the previous page of the TransitSchedulePage .

public int hashCode ()

For documentation, see java.lang.Object

Class Details

Represents departure information for a public transport stop/station. Departure items are paginated based on page size parameter.

Method Details

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public java.util.List <TransitDeparture> getItems ()

Gets the list of departures.

Returns:

The list of TransitDeparture

public java.util.Map <java.lang.String, com.here.android.mpa.search.TransitLine> getLines ()

Gets the map collection of transit line names to TransitLine information.

Returns:

The map collection of lines serving departures shown in current departure item list using line name as a key

public TransitSchedulePageRequest getNextPageRequest ()

Gets the TransitSchedulePageRequest for requesting the next page of the TransitSchedulePage .

Returns:

The TransitSchedulePageRequest

public int getOffsetCount ()

Gets the collection offset count for the current page of the TransitSchedulePage .

For the first page of results, the offset count is 0. Following any call to getNextPageRequest(), the offset count will be greater than 0.

Returns:

The collection offset count

public java.util.Map <java.lang.String, com.here.android.mpa.search.TransitOperator> getOperators ()

Gets the map collection of transit line operators to TransitOperator information.

Returns:

The map collection of operators operating on this stop/station using operator ID as a key

public TransitSchedulePageRequest getPreviousPageRequest ()

Gets the TransitSchedulePageRequest for requesting the previous page of the TransitSchedulePage .

Returns:

The TransitSchedulePageRequest

public int hashCode ()

For documentation, see java.lang.Object