HERE Android SDK Developer's Guide

DepartureBoardRequest

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

Class Summary

public final class DepartureBoardRequest

extends com.here.android.mpa.urbanmobility.AbstractListRequest, com.here.android.mpa.urbanmobility.AbstractRequest, java.lang.Object

Represents a request to retrieve a station next departures board.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in DepartureBoardRequest
Methods

public DepartureBoardRequest setRequestRealTimeInfoEnabled (boolean returnRealTimeInfo)

Set if RealTimeInfo for found departures should be included in the response.

public DepartureBoardRequest setStrictResultEnabled (boolean strict)

Indicates that departure board should include results only for given stop, not also for related stops.

public DepartureBoardRequest setTime (Date time)

Sets the time point after which departures should be returned.

public DepartureBoardRequest setTransportTypes (EnumSet transportTypes)

Sets which transport types are allowed to be included in the response.

Class Details

Represents a request to retrieve a station next departures board. Note that all setter methods return current instance so these calls can be nicely chained.

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

Method Details

public DepartureBoardRequest setRequestRealTimeInfoEnabled (boolean returnRealTimeInfo)

Set if RealTimeInfo for found departures should be included in the response. It is false by default.

Parameters:

  • returnRealTimeInfo

    indicates if real-time info should be returned

Returns:

this request instance

public DepartureBoardRequest setStrictResultEnabled (boolean strict)

Indicates that departure board should include results only for given stop, not also for related stops. Default is false, i.e. departure board might contain departures for related stops.

Parameters:

  • strict

    true to request departures only for given stop, false otherwise

Returns:

this request instance

public DepartureBoardRequest setTime (Date time)

Sets the time point after which departures should be returned. It is current time by default.

Parameters:

  • time

    time of departures

Returns:

this request instance

public DepartureBoardRequest setTransportTypes (EnumSet transportTypes)

Sets which transport types are allowed to be included in the response. All transport types are included by default.

Parameters:

  • transportTypes

    allowed transport types

Returns:

this request instance

Throws:

  • IllegalArgumentException

    if transportTypes is empty.

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.