Top | ![]() |
![]() |
![]() |
![]() |
#define | GEOCLUE_ADDRESS_KEY_AREA |
#define | GEOCLUE_ADDRESS_KEY_COUNTRY |
#define | GEOCLUE_ADDRESS_KEY_COUNTRYCODE |
#define | GEOCLUE_ADDRESS_KEY_LOCALITY |
#define | GEOCLUE_ADDRESS_KEY_POSTALCODE |
#define | GEOCLUE_ADDRESS_KEY_REGION |
#define | GEOCLUE_ADDRESS_KEY_STREET |
enum | GeoclueAccuracyLevel |
enum | GeoclueNetworkStatus |
enum | GeocluePositionFields |
enum | GeoclueResourceFlags |
enum | GeoclueStatus |
enum | GeoclueVelocityFields |
#define GEOCLUE_ADDRESS_KEY_AREA "area"
A key for address hashtables. The hash value should be a name of an area, such as neighborhood or campus.
#define GEOCLUE_ADDRESS_KEY_COUNTRY "country"
A key for address hashtables. The hash value should be a name of a country.
#define GEOCLUE_ADDRESS_KEY_COUNTRYCODE "countrycode"
A key for address hashtables. The hash value should be a ISO 3166 two letter country code.
The used hash keys match the elements of XEP-0080 (XMPP protocol extension for user location), see
http://www.xmpp.org/extensions/xep-0080.html#define GEOCLUE_ADDRESS_KEY_LOCALITY "locality"
A key for address hashtables. The hash value should be a name of a town or city.
#define GEOCLUE_ADDRESS_KEY_POSTALCODE "postalcode"
A key for address hashtables. The hash value should be a code used for postal delivery.
#define GEOCLUE_ADDRESS_KEY_REGION "region"
A key for address hashtables. The hash value should be a name of an administrative region of a nation, e.g. province or US state.
#define GEOCLUE_ADDRESS_KEY_STREET "street"
A key for address hashtables. The hash value should be a partial or full street address.
Enum values used to define the approximate accuracy of
Position or Address information. These are ordered in
from lowest accuracy possible to highest accuracy possible.
geoclue_accuracy_get_details()
can be used to get get the
current accuracy. It is up to the provider to set the
accuracy based on analysis of its queries.
GeocluePositionFields is a bitfield that defines the validity of Position values.
Example:
1 2 3 4 5 6 7 |
GeocluePositionFields fields; fields = geoclue_position_get_position (. . .); if (fields & GEOCLUE_POSITION_FIELDS_LATITUDE && fields & GEOCLUE_POSITION_FIELDS_LONGITUDE) { g_print("latitude and longitude are valid"); } |