public interface GeoLocationInfo
Modifier and Type | Method and Description |
---|---|
int |
getAltitude()
Gives the Altitude of the geographical location in meters.
|
int |
getLatitude()
Gives the Latitude of the geographical location in Degrees, Minutes and Seconds.
|
int |
getLongitude()
Gives the Longitude of the geographical location in Degrees, Minutes and Seconds.
|
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 (speed in Km/h & bearing/course in degrees).
|
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
- Velocity Type byte to identify the Velocity Type to be returned.
Possible values:GET_HORIZONTAL_VELOCITY
GET_VERTICAL_VELOCITY
GET_HORIZONTAL_UNCERTAINTY_VELOCITY
GET_VERTICAL_UNCERTAINTY_VELOCITY
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 incorrect 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.bOffset
- offset of the result in buffer
length
- length of data in buffer
buffer
Copyright © 2019 ETSI All Rights Reserved.