HERE Android SDK Developer's Guide

Departure

The class Departure is a member of com.here.android.mpa.urbanmobility .

Class Summary

public final class Departure

extends java.lang.Object

Represents information about a departure.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in Departure
Methods

public boolean equals (Object o)

public AccessPoint getAccessPoint ()

Gets AccessPoint which should be used to access this location.

public java.util.List <AlternativeDeparture> getAlternativeDepartures ()

Gets a list of departures which are alternative to this departure.

public DepartureFrequency getDepartureFrequency ()

Gets a DepartureFrequency object describing frequency of similar departures.

public Place getPlace ()

Gets the Place information from which this departure occurs.

public String getPlatform ()

Gets the originally scheduled departure platform.

public RealTimeInfo getRealTimeInfo ()

Gets the real-time departure time if available.

public Station getStation ()

Gets the Station information from which this departure occurs.

public Date getTime ()

Gets the originally scheduled departure time.

public Transport getTransport ()

Gets the transport information.

public int hashCode ()

Class Details

Represents information about a departure.

IMPORTANT: Urban Mobility Departure Board is a Beta feature. The related classes are subject to change without notice.

Method Details

public boolean equals (Object o)

Parameters:

  • o

public AccessPoint getAccessPoint ()

Gets AccessPoint which should be used to access this location.

Returns:

AccessPoint, or null if not available

public java.util.List <AlternativeDeparture> getAlternativeDepartures ()

Gets a list of departures which are alternative to this departure.

Returns:

list of alternative departures if any

public DepartureFrequency getDepartureFrequency ()

Gets a DepartureFrequency object describing frequency of similar departures.

Returns:

information about departure frequency, or null if not available

public Place getPlace ()

Gets the Place information from which this departure occurs.

Returns:

Place from which this departure occurs, or null if not available

public String getPlatform ()

Gets the originally scheduled departure platform.

Returns:

originally scheduled departure platform, or empty string if not available.

public RealTimeInfo getRealTimeInfo ()

Gets the real-time departure time if available.

Returns:

real-time departure time or null when not available

public Station getStation ()

Gets the Station information from which this departure occurs. NOTE: This property is available only if Place of the departure is also a Station.

Returns:

Station information ,or null if not available

public Date getTime ()

Gets the originally scheduled departure time.

Returns:

Originally scheduled departure time, or null if not available.

public Transport getTransport ()

Gets the transport information.

Returns:

transport information, or null if not available

public int hashCode ()