geo_search_close()

Close the geo_search service.

Synopsis:

#include <geo_search.h>
void geo_search_close(geo_search_handle_t *handle)

Since:

BlackBerry 10.0.0

Arguments:

handle

A valid geo_search handle.

Library:

libgeo_search (For the qcc command, use the -l geo_search option to link against this library)

Description:

Closes the geo_search service and frees resources associated with the handle. Note that any geo_search replies are not freed - see geo_search_free_reply().

The following shows when to use geo_search_close():
 geo_search_handle_t handle;
 geo_search_error_t error = geo_search_open( &handle );
 if ( error == GEO_SEARCH_OK ) {
     // do searches

     // only need to call if geo_search_open() succeeded.
     geo_search_close( &handle );
 }

Returns: