geo_search_reply_set_index()

Set the index of the current result in the reply.

Synopsis:

#include <geo_search.h>
geo_search_error_t geo_search_reply_set_index(geo_search_reply_t *reply, int index)

Since:

BlackBerry 10.0.0

Arguments:

reply

The search reply.

index

The result index to be set current. This must be between 0 and length-1 inclusively, where length is provided by geo_search_reply_get_length().

Library:

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

Description:

Results in the reply can be accessed by array index. Use this function to set the result index from which the various geo_search_reply_get functions provide data for.

See geo_search_reply_get_name() for an example of usage.

Returns:

GEO_SEARCH_OK if successful. On error, returns GEO_SEARCH_ERROR_REPLY.