geomonitor_region_set_circle_shape()

Set the monitored region to be a circle.

Synopsis:

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

Since:

BlackBerry 10.2.0

Arguments:

region

A geomonitor region handle.

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 creates a circle with a radius of radius meters, with a centre at a specific geographical location. If the specified radius is less than the minimum or more than the maximum supported radius, then the circle is monitored using the minimum or maximum supported value correspondingly.

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