This component provides an Emergency Location Service. The service passively waits for Wifi scan results (via the
fuchsia.location.sensor.WlanBaseStationWatcher protocol), as well as Emergency Location requests (via the
fuchsia.location.position.EmergencyProvider protocol). When an
EmergencyProvider request arrives, this component uses the Google Maps API to resolve cached scan results to the current position.
Note that access to the Google Maps API requires an API key. The key should be provided via the config-data mechanism.
To add this component to your build, append
--with //src/connectivity/location/emergency to the
fx set invocation.
$ fx shell run fuchsia-pkg://fuchsia.com/emergency#meta/emergency.cmx
Unit tests for emergency are available in the
$ fx test emergency-tests