public interface GeoLocationInfo
Modifier and Type | Method and Description |
---|---|
int |
getAltitude()
Gives the Altitude of the geographical location
|
int |
getLatitude()
Gives the Latitude of the geographical location
|
int |
getLongitude()
Gives the Longitude of the geographical location
|
short |
getResponseBuffer(byte[] buffer,
short bOffset,
short length)
This API return the Geo Location information provided in the geolocation reporting Envelope.
|
int |
getVelocity(byte bGetVelocityField)
Gives a field from the Velocity Data of the geographical location.
|
int getLatitude()
GeoLocationException
- with the following reason codes: INCORRECT_INFORMATION
if empty data was returned in Geographical Location reporting envelope (i.e. Geographical Location reporting Tag, Length, and Device Identities only).
UNABLE_TO_PROCESS_COMMAND
if data returned in Geographical Location reporting envelope does not include any of the sentences listed in TS 31.111[7].
int getLongitude()
GeoLocationException
- with the following reason codes: INCORRECT_INFORMATION
if empty data was returned in Geographical Location reporting envelope (i.e. Geographical Location reporting Tag, Length, and Device Identities only).
UNABLE_TO_PROCESS_COMMAND
if data returned in Geographical Location reporting envelope does not include any of the sentences listed in TS 31.111[7].
int getAltitude()
GeoLocationException
- with the following reason codes: INCORRECT_INFORMATION
if empty data was returned in Geographical Location reporting envelope (i.e. Geographical Location reporting Tag, Length, and Device Identities only).
UNABLE_TO_PROCESS_COMMAND
if data returned in Geographical Location reporting envelope does not include any of the sentences listed in TS 31.111[7].
int getVelocity(byte bGetVelocityField)
bGetVelocityField
- byte to identify the Velocity Field to return. Possible values:GeoLocationException
- with the following reason codes: INCORRECT_INFORMATION
if empty data was returned in Geographical Location reporting envelope (i.e. Geographical Location reporting Tag, Length, and Device Identities only).
INCORRECT_PARAMETERS
if bad parameter is set.
UNABLE_TO_PROCESS_COMMAND
if data returned in Geographical Location reporting envelope does not include any of the sentences listed in TS 31.111[7] or the Velocity field requested is not present.
short getResponseBuffer(byte[] buffer, short bOffset, short length)
buffer
- byte array where response of the operation shall be copied.offset
- offset of the result in buffer
length
- length of data in buffer
buffer