Package uicc.usim.geolocation
Interface GeoLocation
public interface GeoLocation
This interface defines services allowing an application to get information on the ME current geographical location.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteGAD shape: Ellipsoid arcstatic final byteGAD shape: Ellipsoid pointstatic final byteGAD shape: Ellipsoid point with altitudestatic final byteGAD shape: Ellipsoid point with altitude and uncertainty ellipsoidstatic final byteGAD shape: Ellipsoid point with uncertainty circlestatic final byteGAD shape: Ellipsoid point with uncertainty ellipsestatic final byteGAD shape: Polygonstatic final byteObtain Horizontal Uncertainty Velocity Field from Velocity information.static final byteObtain Horizontal Velocity Field from Velocity information.static final byteObtain Vertical Uncertainty Velocity Field from Velocity information.static final byteObtain Vertical Velocity Field from Velocity information.static final byteHorizontal accuracy: best effortstatic final byteHorizontal velocity requestedstatic final byteUncertainty of horizontal velocity requested in addition to horizontal velocitystatic final bytePreferred NMEA sentence: _GGAstatic final bytePreferred NMEA sentence: _GLLstatic final bytePreferred NMEA sentence: _GNSstatic final bytePreferred NMEA sentence: _RMCstatic final byteVertical velocity requested in addition to horizontal velocitystatic final byteUncertainty of vertical and horizontal velocity requested in addition to horizontal and vertical velocitystatic final byteVertical coordinate: not requestedstatic final byteVertical coordinate: best effort -
Method Summary
Modifier and TypeMethodDescriptionvoidperformGeoLocationRequest(GeoLocationEventListener geoLocationEventListener) Request a geographical location operation, using parameters defined in the object.voidsetAcceptedGADShapes(byte acceptedGADShapes) Set accepted GAD shapes parameter for this object as defined in 3GPP TS 31.111 [7].voidsetAlphaIdentifier(byte[] alphaIdentifier) Set alpha identifier parameter for this object as defined in 3GPP TS 31.111 [7].voidsetHorizontalAccuracy(byte horizontalAccuracy) Set horizontal accuracy parameter for this object as defined in 3GPP TS 31.111 [7].voidsetIconIdentifier(short iconIdentifier) Set icon identifier parameter for this object as defined in 3GPP TS 31.111 [7].voidsetPreferredMaximumResponseTime(byte preferredMaximumResponseTime) Set Preferred Maximum Response Time parameter for this object as defined in 3GPP TS 31.111 [7].voidsetPreferredNMEASentences(byte preferredNMEASentences) Set Preferred NMEA sentences parameter for this object as defined in 3GPP TS 31.111 [7].voidsetVelocity(byte velocity) Set velocity parameter for this object as defined in 3GPP TS 31.111 [7].voidsetVerticalCoordinate(byte verticalCoordinate) Set vertical coordinate parameter for this object as defined in 3GPP TS 31.111 [7].
-
Field Details
-
HORIZONTAL_ACCURACY_BEST_EFFORT
static final byte HORIZONTAL_ACCURACY_BEST_EFFORTHorizontal accuracy: best effort- See Also:
-
VERTICAL_COORDINATE_NOT_REQUESTED
static final byte VERTICAL_COORDINATE_NOT_REQUESTEDVertical coordinate: not requested- See Also:
-
VERTICAL_COORDINATE_REQUESTED_BEST_EFFORT
static final byte VERTICAL_COORDINATE_REQUESTED_BEST_EFFORTVertical coordinate: best effort- See Also:
-
HORIZONTAL_VELOCITY_REQUESTED
static final byte HORIZONTAL_VELOCITY_REQUESTEDHorizontal velocity requested- See Also:
-
VERTICAL_AND_HORIZONTAL_VELOCITY_REQUESTED
static final byte VERTICAL_AND_HORIZONTAL_VELOCITY_REQUESTEDVertical velocity requested in addition to horizontal velocity- See Also:
-
HORIZONTAL_VELOCITY_REQUESTED_WITH_UNCERTAINTY
static final byte HORIZONTAL_VELOCITY_REQUESTED_WITH_UNCERTAINTYUncertainty of horizontal velocity requested in addition to horizontal velocity- See Also:
-
VERTICAL_AND_HORIZONTAL_VELOCITY_REQUESTED_WITH_UNCERTAINTY
static final byte VERTICAL_AND_HORIZONTAL_VELOCITY_REQUESTED_WITH_UNCERTAINTYUncertainty of vertical and horizontal velocity requested in addition to horizontal and vertical velocity- See Also:
-
GET_HORIZONTAL_VELOCITY
static final byte GET_HORIZONTAL_VELOCITYObtain Horizontal Velocity Field from Velocity information.- See Also:
-
GET_VERTICAL_VELOCITY
static final byte GET_VERTICAL_VELOCITYObtain Vertical Velocity Field from Velocity information.- See Also:
-
GET_HORIZONTAL_UNCERTAINTY_VELOCITY
static final byte GET_HORIZONTAL_UNCERTAINTY_VELOCITYObtain Horizontal Uncertainty Velocity Field from Velocity information.- See Also:
-
GET_VERTICAL_UNCERTAINTY_VELOCITY
static final byte GET_VERTICAL_UNCERTAINTY_VELOCITYObtain Vertical Uncertainty Velocity Field from Velocity information.- See Also:
-
GAD_SHAPES_ELLIPSOID_POINT
static final byte GAD_SHAPES_ELLIPSOID_POINTGAD shape: Ellipsoid point- See Also:
-
GAD_SHAPES_ELLIPSOID_POINT_WITH_UNCERTAINTY_CIRCLE
static final byte GAD_SHAPES_ELLIPSOID_POINT_WITH_UNCERTAINTY_CIRCLEGAD shape: Ellipsoid point with uncertainty circle- See Also:
-
GAD_SHAPES_ELLIPSOID_POINT_WITH_UNCERTAINTY_ELLIPSE
static final byte GAD_SHAPES_ELLIPSOID_POINT_WITH_UNCERTAINTY_ELLIPSEGAD shape: Ellipsoid point with uncertainty ellipse- See Also:
-
GAD_SHAPES_ELLIPSOID_POINT_WITH_ALTITUDE
static final byte GAD_SHAPES_ELLIPSOID_POINT_WITH_ALTITUDEGAD shape: Ellipsoid point with altitude- See Also:
-
GAD_SHAPES_POLYGON
static final byte GAD_SHAPES_POLYGONGAD shape: Polygon- See Also:
-
GAD_SHAPES_ELLIPSOID_POINT_WITH_ALTITUDE_AND_UNCERTAINTY_ELLIPSOID
static final byte GAD_SHAPES_ELLIPSOID_POINT_WITH_ALTITUDE_AND_UNCERTAINTY_ELLIPSOIDGAD shape: Ellipsoid point with altitude and uncertainty ellipsoid- See Also:
-
GAD_SHAPES_ELLIPSOID_ARC
static final byte GAD_SHAPES_ELLIPSOID_ARCGAD shape: Ellipsoid arc- See Also:
-
PREFERRED_NMEA_SENTENCE_RMC
static final byte PREFERRED_NMEA_SENTENCE_RMCPreferred NMEA sentence: _RMC- See Also:
-
PREFERRED_NMEA_SENTENCE_GGA
static final byte PREFERRED_NMEA_SENTENCE_GGAPreferred NMEA sentence: _GGA- See Also:
-
PREFERRED_NMEA_SENTENCE_GLL
static final byte PREFERRED_NMEA_SENTENCE_GLLPreferred NMEA sentence: _GLL- See Also:
-
PREFERRED_NMEA_SENTENCE_GNS
static final byte PREFERRED_NMEA_SENTENCE_GNSPreferred NMEA sentence: _GNS- See Also:
-
-
Method Details
-
setAlphaIdentifier
void setAlphaIdentifier(byte[] alphaIdentifier) Set alpha identifier parameter for this object as defined in 3GPP TS 31.111 [7].- Parameters:
alphaIdentifier- Alpha identifier TLV as defined in 3GPP TS 31.111 [7].
-
setIconIdentifier
void setIconIdentifier(short iconIdentifier) Set icon identifier parameter for this object as defined in 3GPP TS 31.111 [7].- Parameters:
iconIdentifier- Value part of Icon identifier TLV as defined in 3GPP TS 31.111 [7].- Throws:
GeoLocationException- with the following reason codes:INCORRECT_PARAMETERSin case of bad parameter is set.
-
setHorizontalAccuracy
void setHorizontalAccuracy(byte horizontalAccuracy) Set horizontal accuracy parameter for this object as defined in 3GPP TS 31.111 [7].- Parameters:
horizontalAccuracy- as defined in 3GPP TS 31.111.
The horizontalAccuracy value shall be:- in the range '00' to '7F', or
HORIZONTAL_ACCURACY_BEST_EFFORT
- Throws:
GeoLocationException- with the following reason codes:INCORRECT_PARAMETERSin case of bad parameter is set.
-
setVerticalCoordinate
void setVerticalCoordinate(byte verticalCoordinate) Set vertical coordinate parameter for this object as defined in 3GPP TS 31.111 [7].- Parameters:
verticalCoordinate- as defined in 3GPP TS 31.111.
The verticalCoordinate value shall be:- in the range '00' to '7F', or
VERTICAL_COORDINATE_NOT_REQUESTED, orVERTICAL_COORDINATE_REQUESTED_BEST_EFFORT
- Throws:
GeoLocationException- with the following reason codes:INCORRECT_PARAMETERSin case of bad parameter is set.
-
setVelocity
void setVelocity(byte velocity) Set velocity parameter for this object as defined in 3GPP TS 31.111 [7].- Parameters:
velocity- byte to identify the Velocity Type to return. Possible value, one or combination (OR operation) of:HORIZONTAL_VELOCITY_REQUESTEDVERTICAL_AND_HORIZONTAL_VELOCITY_REQUESTEDHORIZONTAL_VELOCITY_REQUESTED_WITH_UNCERTAINTYVERTICAL_AND_HORIZONTAL_VELOCITY_REQUESTED_WITH_UNCERTAINTY
- Throws:
GeoLocationException- with the following reason codes:INCORRECT_PARAMETERSin case of bad parameter is set.
-
setAcceptedGADShapes
void setAcceptedGADShapes(byte acceptedGADShapes) Set accepted GAD shapes parameter for this object as defined in 3GPP TS 31.111 [7].- Parameters:
acceptedGADShapes- GAD shapes as defined in 3GPP TS 31.111[7].
Possible values:GAD_SHAPES_ELLIPSOID_POINTGAD_SHAPES_ELLIPSOID_POINT_WITH_UNCERTAINTY_CIRCLEGAD_SHAPES_ELLIPSOID_POINT_WITH_UNCERTAINTY_ELLIPSEGAD_SHAPES_ELLIPSOID_POINT_WITH_ALTITUDEGAD_SHAPES_POLYGONGAD_SHAPES_ELLIPSOID_POINT_WITH_ALTITUDE_AND_UNCERTAINTY_ELLIPSOIDGAD_SHAPES_ELLIPSOID_ARC
- Throws:
GeoLocationException- with the following reason codes:INCORRECT_PARAMETERSin case of bad parameter is set.
-
setPreferredNMEASentences
void setPreferredNMEASentences(byte preferredNMEASentences) Set Preferred NMEA sentences parameter for this object as defined in 3GPP TS 31.111 [7].- Parameters:
preferredNMEASentences- as defined in 3GPP TS 31.111[7].
Possible values:PREFERRED_NMEA_SENTENCE_RMCPREFERRED_NMEA_SENTENCE_GGAPREFERRED_NMEA_SENTENCE_GLLPREFERRED_NMEA_SENTENCE_GNS
- Throws:
GeoLocationException- with the following reason codes:INCORRECT_PARAMETERSin case of bad parameter is set.
-
setPreferredMaximumResponseTime
void setPreferredMaximumResponseTime(byte preferredMaximumResponseTime) Set Preferred Maximum Response Time parameter for this object as defined in 3GPP TS 31.111 [7].- Parameters:
preferredMaximumResponseTime- as defined in 3GPP TS 31.111[7].
preferredMaximumResponseTime shall be in the range'02' to '07' where 2^'xx' represents the preferred maximum response time in seconds- Throws:
GeoLocationException- with the following reason codes:INCORRECT_PARAMETERSin case of bad parameter is set.
-
performGeoLocationRequest
void performGeoLocationRequest(GeoLocationEventListener geoLocationEventListener) throws GeoLocationException, uicc.toolkit.ToolkitException Request a geographical location operation, using parameters defined in the object. A callback mechanism is used to retrieve the result, when available, using thegeoLocationEventListenerobject.
If the ME has indicated in its Terminal Profile that it supports "class n" ("Geographical Location Request" see TS 31.111[7] for more details) the system will first send out a "Geographical Location Request" proactive command.
- If the Terminal Response from the ME indicates that the commands can be performed successfully the
actual Geo Location information will be made available through a
GeoLocationInformationobject. - If the Terminal Response from the ME indicates that it can not perform this command, an exception is thrown, UNABLE_TO_PROCESS_COMMAND.
- Parameters:
geoLocationEventListener- the callback object to be invoked once the result is available.- Throws:
NullPointerException- ifgeoLocationEventListenerisnullGeoLocationException- with the following reason codes:FUNCTION_DISABLEDin case the ME is currently unable to get the location information (e.g. due to lack of GPS coverage or due to a deactivated GPS receiver).UNABLE_TO_PROCESS_COMMANDin case the ME is not equipped with a positioning feature.LOCATION_REQUEST_PROCESSINGin case a Geographical Location Request has already been issued and the Envelope Geographical Location Reporting is expected.
uicc.toolkit.ToolkitException- with the following reason code:HANDLER_NOT_AVAILABLEif there is on-going proactive session
- If the Terminal Response from the ME indicates that the commands can be performed successfully the
actual Geo Location information will be made available through a
-