tree: de0a8749810d07dda82517bab53e28785ad77330 [path history] [tgz]
  1. meta/
  2. src/
  3. BUILD.gn
  4. README.md
src/connectivity/location/emergency/README.md

emergency

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.

Building

To add this component to your build, append --with //src/connectivity/location/emergency to the fx set invocation.

Running

$ fx shell run fuchsia-pkg://fuchsia.com/emergency#meta/emergency.cmx

Testing

Unit tests for emergency are available in the emergency-tests package.

$ fx test emergency-tests