geo_search_reply_get_lon()

Retrieve the longitude of the result at the current index in the reply.

Synopsis:

#include <geo_search.h>
geo_search_error_t geo_search_reply_get_lon(geo_search_reply_t *reply, double *lon)

Since:

BlackBerry 10.0.0

Arguments:

reply

The search reply.

lon

The resultant longitude, relative to the WGS84 datum.

Library:

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

Description:

The longitude is given in decimal degrees, within the range of -180.0 to +180.0. For a reverse geocode search the resultant longitude may be the same as the search longitude.

See geo_search_reply_get_name() for an example of usage.

Returns:

GEO_SEARCH_OK if successful. On error, returns GEO_SEARCH_ERROR_REPLY.