public interface OperationSetGeolocation extends OperationSet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALT
The name of the geolocation map key corresponding to the altitude in
meters above or below sea level (e.g.
|
static java.lang.String |
AREA
The name of the geolocation map key that we use for storing named areas
such as a campus or neighborhood (e.g.
|
static java.lang.String |
BEARING
The name of the geolocation map key that we use for storing GPS bearing
(direction in which the entity is heading to reach its next waypoint),
measured in decimal degrees relative to true north.
|
static java.lang.String |
BUILDING
The name of the geolocation map key that we use for indicating a
specific building on a street or in an area (e.g.
|
static java.lang.String |
COUNTRY
The name of the geolocation map key that we use for indicating the
nation where the user is located (e.g.
|
static java.lang.String |
DATUM
GPS datum.
|
static java.lang.String |
DESCRIPTION
The name of the geolocation map key that we use for storing a
natural-language name for or description of a given location (e.g.
|
static java.lang.String |
ERROR
The name of the geolocation map key that we use for storing horizontal
GPS errors in arc minutes (e.g.
|
static java.lang.String |
FLOOR
The name of the geolocation map key that we use for storing a particular
floor in a building (e.g.
|
static java.lang.String |
LAT
The name of the geolocation map key that we use for storing geographic
latitude in decimal degrees North (e.g.
|
static java.lang.String |
LOCALITY
The name of the geolocation map key that we use for indicating a
locality within the administrative region, such as a town or city (e.g.
|
static java.lang.String |
LON
The name of the geolocation map key that we use for indicating
longitude in decimal degrees East (e.g.
|
static java.lang.String |
POSTALCODE
The name of the geolocation map key that we use for storing post codes
(or any code used for postal delivery) (e.g.
|
static java.lang.String |
REGION
The name of the geolocation map key that we use for indicating an
administrative region of the nation, such as a state or province (e.g.
|
static java.lang.String |
ROOM
The name of the geolocation map key that we use for indicating a
particular room in a building (e.g.
|
static java.lang.String |
STREET
The name of the geolocation map key that we use for storing a
thoroughfare within a locality, or a crossing of two thoroughfares (e.g.
|
static java.lang.String |
TEXT
The name of the geolocation map key that we use to indicate a catch-all
element that captures any other information about the location (e.g.
|
static java.lang.String |
TIMESTAMP
The name of the geolocation map key that we use to indicate UTC
timestamp specifying the moment when the reading was taken
(e.g.
|
Modifier and Type | Method and Description |
---|---|
void |
addGeolocationListener(GeolocationListener listener)
Registers a listener that would get notifications any time a contact
publishes a new geolocation.
|
void |
publishGeolocation(java.util.Map<java.lang.String,java.lang.String> geolocation)
Publish the location contained in the geolocation map to all
contacts in our contact list.
|
java.util.Map<java.lang.String,java.lang.String> |
queryContactGeolocation(java.lang.String contactIdentifier)
Retrieve the geolocation of the contact corresponding to
contactIdentifier.
|
void |
removeGeolocationListener(GeolocationListener listener)
Removes a listener previously registered for notifications of changes in
the contact geolocation details.
|
static final java.lang.String ALT
static final java.lang.String AREA
static final java.lang.String BEARING
static final java.lang.String BUILDING
static final java.lang.String COUNTRY
static final java.lang.String DATUM
static final java.lang.String DESCRIPTION
static final java.lang.String ERROR
static final java.lang.String FLOOR
static final java.lang.String LAT
static final java.lang.String LOCALITY
static final java.lang.String LON
static final java.lang.String POSTALCODE
static final java.lang.String REGION
static final java.lang.String ROOM
static final java.lang.String STREET
static final java.lang.String TEXT
static final java.lang.String TIMESTAMP
void publishGeolocation(java.util.Map<java.lang.String,java.lang.String> geolocation)
geolocation
- a java.uil.Map containing the geolocation
details of the position we'd like to publish.java.util.Map<java.lang.String,java.lang.String> queryContactGeolocation(java.lang.String contactIdentifier)
contactIdentifier
- the address of the Contact whose
geolocation details we'd like to retrieve.void addGeolocationListener(GeolocationListener listener)
listener
- the GeolocationListener to registervoid removeGeolocationListener(GeolocationListener listener)
listener
- the GeolocationListener to unregister
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.