HERE Android SDK Developer's Guide

MultiBoardRequest

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

Class Summary

public class MultiBoardRequest

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

Represents a request to retrieve a multi station departures board.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in MultiBoardRequest
Methods

public MultiBoardRequest setDepartureTime (Date time)

Sets the time point after which departures should be returned.

public MultiBoardRequest setMaxDeparturesPerStation (int maxDepartures)

Sets the maximum number of departures to be returned per station.

public MultiBoardRequest setRadius (int radius)

Sets radius in meters that defines the area of the search.

public MultiBoardRequest setRequestRealTimeInfoEnabled (boolean realTimeInfo)

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

public MultiBoardRequest setTransportTypes (EnumSet transportTypes)

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

Class Details

Represents a request to retrieve a multi station 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 MultiBoardRequest setDepartureTime (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 MultiBoardRequest setMaxDeparturesPerStation (int maxDepartures)

Sets the maximum number of departures to be returned per station. It is not set by default.

Parameters:

  • maxDepartures

    number of departures to be returned per station, must be greater than 0

Returns:

this request instance

Throws:

  • IllegalArgumentException

    if maxDepartures is invalid.

public MultiBoardRequest setRadius (int radius)

Sets radius in meters that defines the area of the search. It is 500 by default.

Parameters:

  • radius

    area of the search in meters, must be greater than or equal 0

Returns:

this request instance

Throws:

  • IllegalArgumentException

    if radius is invalid.

public MultiBoardRequest setRequestRealTimeInfoEnabled (boolean realTimeInfo)

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

Parameters:

  • realTimeInfo

    true if real-time info should be returned, false otherwise

Returns:

this request instance

public MultiBoardRequest 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.