searchByAddressElements abstract method

TaskHandle searchByAddressElements(
  1. StructuredQuery query,
  2. SearchOptions options,
  3. SearchCallback callback
)

Performs an asynchronous request to search for places.

The user submits a StructuredQuery that returns places adhering to the constraints provided in StructuredQuery. For example, when user wants results of type street for a text query Invalidenstraße in Berlin, it can be searched by preparing StructuredQuery providing StructuredQuery.query as Invalidenstraße, StructuredQuery.areaCenter, StructuredQueryAddressElements.country as Germany, StructuredQueryAddressElements.city as Berlin and StructuredQueryResultType as STREET. The results will be presented only from the given geographical area.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • query Desired structured query to search.

  • options Search options.

  • callback Callback which receives the result on the main thread.

Returns TaskHandle. Handle that will be used to manipulate the execution of the task.

Implementation

TaskHandle searchByAddressElements(StructuredQuery query, SearchOptions options, SearchCallback callback);