geo_search_reply_get_iso_alpha2_country_code()

Retrieve the ISO 3166-1 alpha-2 country code of the result at the current index in the reply.

Synopsis:

#include <geo_search.h>
geo_search_error_t geo_search_reply_get_iso_alpha2_country_code(geo_search_reply_t *reply, const char **iso2_country_code)

Since:

BlackBerry 10.0.0

Arguments:

reply

The search reply.

iso2_country_code

The resultant two character ISO 3166-1 alpha-2 country code (UTF-8 string).

Library:

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

Description:

See geo_search_reply_get_name() for an example of usage.

Returns:

GEO_SEARCH_OK if successful. On error, returns GEO_SEARCH_ERROR_REPLY.