Protocols and types related to positions.
PROTOCOLS
EmergencyProvider
Defined in fuchsia.location.position/position.fidl
Provides access to position data for emergency purposes. Implementations of this service are expected to be subject to different power and privacy controls than more general location services.
GetCurrent
Returns the current position, if available.
Request
<EMPTY>
Response
Name | Type |
---|---|
payload |
EmergencyProvider_GetCurrent_Result
|
STRUCTS
EmergencyProvider_GetCurrent_Response
Defined in fuchsia.location.position/position.fidl
Field | Type | Description | Default |
---|---|---|---|
position |
Position
|
No default |
Position
Defined in fuchsia.location.position/position.fidl
Describes a position on Earth.
A fully-specified position includes latitude and longitude, as well a radius of accuracy of the current position in the horizontal plane, and the current altitude.
Note that only the latitude and longitude are guaranteed
to be present. The remaining fields, if present, are contained
within extras
.
Field | Type | Description | Default |
---|---|---|---|
latitude |
float64
|
No default | |
longitude |
float64
|
No default | |
extras |
PositionExtras
|
No default |
TABLES
PositionExtras
Defined in fuchsia.location.position/position.fidl
Extra information about a position on Earth.
The radius of accuracy may incorporate any sources of uncertainty available to the positioning system. This may include, for example, radio propagation models, triangulation error, and motion compensation.
Note that all extras are optional.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
accuracy_meters |
float64
|
|
2 |
altitude_meters |
float64
|
UNIONS
EmergencyProvider_GetCurrent_Result strict
Defined in fuchsia.location.position/position.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
EmergencyProvider_GetCurrent_Response
|
|
2 |
err |
fuchsia.location/Error
|