Google is committed to advancing racial equity for Black communities. See how.

fuchsia.location.position

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

NameType

Response

NameType
result EmergencyProvider_GetCurrent_Result

STRUCTS

EmergencyProvider_GetCurrent_Response

Defined in fuchsia.location.position/position.fidl

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

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

OrdinalNameTypeDescription
1 accuracy_meters float64
2 altitude_meters float64

UNIONS

EmergencyProvider_GetCurrent_Result

Defined in fuchsia.location.position/position.fidl

NameTypeDescription
response EmergencyProvider_GetCurrent_Response
err fuchsia.location/Error