HERE Android SDK Developer's Guide

OnSearchListener

The interface OnSearchListener is a member of com.here.android.mpa.nlp.Nlp.

Interface Summary

public static abstract interface Nlp.OnSearchListener

   extends com.here.android.mpa.nlp.Nlp.ListenerBase

Search listener interface.

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnSearchListener
Methods

public abstract void onComplete (Error error, String searchString, String whereString, String nearString, java.util.List <PlaceLink> places)

A callback with the resulting list of PlaceLink when a particular search request is complete.

public abstract void onStart (CategoryFilter filter, GeoBoundingBox box)

A callback with the requested category filter for the specified bounding box area

public abstract void onStart (GeoCoordinate location)

A callback with requested reverse geocoding search location GeoCoordinate.

public abstract void onStart (String subject, GeoBoundingBox box)

A callback with the requested search string for the specified bounding box area.

Interface Details

Search listener interface.

Method Details

public abstract void onComplete (Error error, String searchString, String whereString, String nearString, java.util.List <PlaceLink> places)

A callback with the resulting list of PlaceLink when a particular search request is complete. e.g. "Find a coffee shop" When the callback is received, the application is responsible for displaying the search results, if desired.

Parameters:

  • error

    Error status for search request

  • searchString

    The searched string

  • whereString

    The whereabouts of the searched string. Example: "in Seattle"

  • nearString

    The whereabouts of the searched string. Example: "close to the Space Needle"

  • places

    List of PlaceLink objects, the result of the voice search.

public abstract void onStart (CategoryFilter filter, GeoBoundingBox box)

A callback with the requested category filter for the specified bounding box area

Parameters:

  • filter

    Search category filter

  • box

    Bounding box for the search

public abstract void onStart (GeoCoordinate location)

A callback with requested reverse geocoding search location GeoCoordinate. e.g. "Where am I"

Parameters:

  • location

    The GeoCoordinate of the place we need to get address for.

public abstract void onStart (String subject, GeoBoundingBox box)

A callback with the requested search string for the specified bounding box area. e.g. "Find a coffee shop"

Parameters:

  • subject

    Search subject

  • box

    Bounding box for the search