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