HERE Android SDK Developer's Guide

StationSearchRequest

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

Class Summary

public final class StationSearchRequest

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

Represents a request to search stations within certain radius by name, geo-coordinates or IDs.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in StationSearchRequest
Nested Classes

public static final enumeration StationSearchRequest.NameMatchingMethod

Possible matching methods for a station name.

Method Summary

Table 2. Methods in StationSearchRequest
Methods

public StationSearchRequest setMaximumResults (int maxResults)

public StationSearchRequest setRadius (int radius)

Set the station search radius in meters.

public StationSearchRequest setRequestStationDetailsEnabled (boolean details)

Set if station details (e.g.

public StationSearchRequest setStationNameMatchingMethod (NameMatchingMethod method)

Set the matching method for station names when searching with name filter.

Class Details

Represents a request to search stations within certain radius by name, geo-coordinates or IDs. Note that all setter methods return current instance so these calls can be nicely chained.

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

Method Details

public StationSearchRequest setMaximumResults (int maxResults)

Parameters:

  • maxResults

public StationSearchRequest setRadius (int radius)

Set the station search radius in meters. It is 500 by default.

Parameters:

  • radius

    search radius in meters, must be greater than or equal 0

Returns:

this request instance

Throws:

  • IllegalArgumentException

    if radius is invalid.

public StationSearchRequest setRequestStationDetailsEnabled (boolean details)

Set if station details (e.g. lines running through the station) should be returned. It is true by default.

Parameters:

  • details

    true if station details should be returned, false otherwise

Returns:

this request instance

public StationSearchRequest setStationNameMatchingMethod (NameMatchingMethod method)

Set the matching method for station names when searching with name filter. It is FUZZY by default.

Parameters:

  • method

    matching method

Returns:

this request instance

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.