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.

To use the HERE Places 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 https://github.com/google/gson . Attempting to use the Places feature without adding this library causes runtime errors

  • 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

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