HERE Android SDK Developer's Guide

search

The package search is a member of com.here.android.mpa.

Package Summary

search

The search package provides classes for performing places and geocoder searches.

Package Details

The search package provides classes for performing places and geocoder searches.

  • com.here.android.mpa.search.RequestCreator.Places provides methods to create new requests to search and explore places near a given position.
  • com.here.android.mpa.search.RequestCreator.Geocoder provides methods to create new requests to perform address and reverse geocode searches.

The typical steps when perform a search are:

  • Implement the ResultListener interface to handle the completion of the search
  • Create a request using RequestCreator.Places or RequestCreator.Geocoder
  • Start the search by invoking execute(ResultListener)
  • When the search completes, the data returned in the ResultListener.onCompleted() callback is triggered

To use this feature, your application must include the google-gson library (release 2.2.4 or a compatible version) on its class path. This library can be downloaded from the google-gson project website at http://code.google.com/p/google-gson/. Attempting to use this feature without adding this library will cause runtime errors.

For more details on performing searches, please consult the "Places" section in the HERE SDK for Android Developer's Guide.