geomonitor_region_get_circle_shape()

Return region parameters.

Synopsis:

#include <geomonitor.h>
 
geomonitor_error_t geomonitor_region_get_circle_shape(geomonitor_region_t region, double *lat, double *lon, double *radius)

Since:

BlackBerry 10.2.0

Arguments:

region

A handle to the geomonitor region.

lat

The latitude of the center of the region. This is a value (in degrees) in the range [-90.0, 90.0].

lon

The longitude of the center of the region. This is a value (in degrees) in the range [-180, 180.0].

radius

The radius of the region (in meters).

Library:

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

Description:

This function returns the region's parameters (i.e., latitude, longitude, and radius) provided that the region's shape is a circle. If the region is any other shape, then GEOMONITOR_REGION_INVALID_SHAPE_TYPE is returned.

Returns:

GEOMONITOR_OK if successful, an error from geomonitor_error_t otherwise.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus