fuchsia.location.position

Protocols and types related to positions.

Added: 7

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

NameType
payload EmergencyProvider_GetCurrent_Result

STRUCTS

EmergencyProvider_GetCurrent_Response

Defined in fuchsia.location.position/position.fidl

FieldTypeDescriptionDefault
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.

FieldTypeDescriptionDefault
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.

OrdinalFieldTypeDescription
accuracy_meters float64
altitude_meters float64

UNIONS

EmergencyProvider_GetCurrent_Result strict

Defined in fuchsia.location.position/position.fidl

OrdinalVariantTypeDescription
response EmergencyProvider_GetCurrent_Response
err fuchsia.location/Error