HERE Android SDK Developer's Guide

RealTimeInfo

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

Class Summary

public final class RealTimeInfo

extends java.lang.Object

Represents real-time information of a departure or arrival.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in RealTimeInfo
Nested Classes

public static final enumeration RealTimeInfo.RealTimeStatus

Method Summary

Table 2. Methods in RealTimeInfo
Methods

public boolean equals (Object o)

public Date getArrivalTime ()

Gets the real-time arrival time if available, returns null otherwise.

public Date getDepartureTime ()

Gets the real-time departure time if available, returns null otherwise.

public String getPlatform ()

Gets the real-time departure/arrival platform if available, returns empty string otherwise.

public RealTimeStatus getStatus ()

An indicator for some exceptional event happened to this departure/arrival.

public int hashCode ()

Class Details

Represents real-time information of a departure or arrival.

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

Method Details

public boolean equals (Object o)

Parameters:

  • o

public Date getArrivalTime ()

Gets the real-time arrival time if available, returns null otherwise.

Returns:

real-time arrival time or null if not available

public Date getDepartureTime ()

Gets the real-time departure time if available, returns null otherwise.

Returns:

real-time departure time or null if not available

public String getPlatform ()

Gets the real-time departure/arrival platform if available, returns empty string otherwise.

Returns:

real-time departure/arrival platform or empty string if not available.

public RealTimeStatus getStatus ()

An indicator for some exceptional event happened to this departure/arrival. Possible values are members of RealTimeInfo.RealTimeStatus

Returns:

Exception event, default is OK.

public int hashCode ()