HERE Android SDK Developer's Guide

CategoryFilter

The class CategoryFilter is a member of com.here.android.mpa.search .

Class Summary

public class CategoryFilter

extends java.lang.Object

Represents a filter used when performing a search for popular places within a specific geographic area.

[For complete information, see the section Class Details]

See also:

Category

Category.Global

Constructor Summary

Table 1. Constructors in CategoryFilter
Constructors

CategoryFilter ()

Default constructor.

Method Summary

Table 2. Methods in CategoryFilter
Methods

public CategoryFilter add (Global filter)

Adds a Category.Global to the CategoryFilter .

public CategoryFilter add (Category filter)

Adds a Category (retrieved from the results of a previous request) to the CategoryFilter .

public CategoryFilter add (String filter)

Adds a known category to the CategoryFilter as a String .

public boolean equals (Object obj)

For documentation, see java.lang.Object

public int hashCode ()

For documentation, see java.lang.Object

public String toString ()

Returns a stringified CategoryFilter , within which individual categories are separated by commas.

Class Details

Represents a filter used when performing a search for popular places within a specific geographic area. (This type of search is otherwise known as "explore".) The filter limits search results to the specified categories.

A filter can include one or more of:

  • A Category
  • A Category.Global
  • A String indicating a known category

See also:

Category

Category.Global

Constructor Details

CategoryFilter ()

Default constructor.

Method Details

public CategoryFilter add (Global filter)

Adds a Category.Global to the CategoryFilter .

Parameters:

  • filter

    A Category.Global filter

public CategoryFilter add (Category filter)

Adds a Category (retrieved from the results of a previous request) to the CategoryFilter .

Parameters:

  • filter

    A Category filter

public CategoryFilter add (String filter)

Adds a known category to the CategoryFilter as a String .

Parameters:

  • filter

    A String filter

public boolean equals (Object obj)

For documentation, see java.lang.Object

Parameters:

  • obj

public int hashCode ()

For documentation, see java.lang.Object

public String toString ()

Returns a stringified CategoryFilter , within which individual categories are separated by commas.

Returns:

The stringified CategoryFilter

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.