Types related to GNSS locations.
This FIDL provides shared types used by GNSS drivers or services.
STRUCTS
LatLong
Defined in fuchsia.location.gnss.types/gnss_types.fidl
Horizontal location on earth.
Field | Type | Description | Default |
---|---|---|---|
latitude_deg |
float64
|
Latitude in degrees. |
No default |
longitude_deg |
float64
|
Longitude in degrees. |
No default |
ENUMS
Error flexible
Type: uint32
Defined in fuchsia.location.gnss.types/gnss_types.fidl
Errors returned in case of failures.
Name | Value | Description |
---|---|---|
MODEM_OFFLINE |
1 |
Modem is offline. |
GNSS_DISABLED |
2 |
GNSS is disabled. |
TIMEOUT |
3 |
Timeout occurred while waiting for an action. |
NO_FIX_AVAILABLE |
4 |
No cached fix available. |
INTERNAL_ERROR |
5 |
Failed due to internal error. |
ACTIVE_SESSION_ONGOING |
6 |
Active location session is ongoing. |
MISSING_PARAMETERS |
7 |
All required parameters are not available. |
NOT_SUPPORTED |
8 |
Unsupported feature. |
BAD_STATE |
9 |
Bad state. |
FixType flexible
Type: uint32
Defined in fuchsia.location.gnss.types/gnss_types.fidl
Fix types depending on how GNSS receivers determine the fix.
Name | Value | Description |
---|---|---|
STANDALONE |
1 |
Fix calculated based on direct satellite signals. |
MS_BASED |
2 |
Fix calculated with assistance data from a server for faster and more accurate fixes. |
MS_ASSISTED |
3 |
Fix calculated by offloading some of the position calculation to a server. |
TABLES
Altitude
Defined in fuchsia.location.gnss.types/gnss_types.fidl
Altitude with accuracy.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
altitude_meters |
float64
|
Altitude in meters above the WGS84 reference ellipsoid. Required. |
2 |
vertical_accuracy_meters |
float64
|
Estimated altitude accuracy in meters. Optional. |
Bearing
Defined in fuchsia.location.gnss.types/gnss_types.fidl
Bearing with accuracy.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
bearing_deg |
float64
|
Bearing in degrees. Required. |
2 |
bearing_accuracy_deg |
float64
|
Estimated bearing accuracy in degrees. Optional. |
FixParams
Defined in fuchsia.location.gnss.types/gnss_types.fidl
Parameters for fix calculation.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
fix_type |
FixType
|
Type of fix to establish. Required. |
2 |
max_time_secs |
uint8
|
Maximum time to wait for a position fix. Required. |
3 |
max_dist_meters |
uint32
|
The desired accuracy for the location fix.
The modem attempts to determine the location as accurately as possible,
but will stop searching after |
HorizontalLocation
Defined in fuchsia.location.gnss.types/gnss_types.fidl
Horizontal location with accuracy.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
lat_long |
LatLong
|
Latitude and longitude. Required. |
2 |
horizontal_accuracy_meters |
float64
|
Estimated horizontal accuracy radius in meters. Optional. |
Location
Defined in fuchsia.location.gnss.types/gnss_types.fidl
GNSS location.
Location provider leaves optional fields blank if the corresponding. information is unavailable.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
lat_long |
HorizontalLocation
|
Horizontal location. Required. |
2 |
altitude |
Altitude
|
Altitude in meters above the WGS84 reference ellipsoid. Optional. |
3 |
speed |
Speed
|
Speed at the time of calculating location. Optional. |
4 |
bearing |
Bearing
|
Bearings. Optional. |
5 |
timestamp_gps_utc_msec |
uint64
|
GPS time at which last position fix was taken. Optional. |
Speed
Defined in fuchsia.location.gnss.types/gnss_types.fidl
Speed with accuracy.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
speed_meters_per_sec |
float64
|
Speed at the time of calculating location. Required. |
2 |
speed_accuracy_meters_per_sec |
float64
|
Estimated speed accuracy in meters per second. Optional. |
BITS
Capabilities flexible
Type: uint32
Defined in fuchsia.location.gnss.types/gnss_types.fidl
Bit masks indicating capabilities that are supported by platform and engine.
Name | Value | Description |
---|---|---|
CAPABILITY_SCHEDULING |
1 | Capability bit mask indicating that GNSS supports scheduling fixes. |
CAPABILITY_MSB |
2 | Capability bit mask indicating that GNSS supports Mobile Station-Based AGNSS mode. |
CAPABILITY_MSA |
4 | Capability bit mask indicating that GNSS supports Mobile Station-Assisted AGNSS mode. |
CAPABILITY_SINGLE_SHOT |
8 | Capability bit mask indicating that GNSS supports single-shot fixes. |