Try It Yourself: Location Awareness
Try It Yourself: Location Awareness
Hands-on exercises to explore location awareness:
Exercise 1: Build a Simple Geofence
Use smartphone location services:
- Define home geofence: Center at your address, radius 150 meters
- Implement on-device detection (IFTTT, Tasker, or Shortcuts app)
- Trigger: “Send notification when entering/exiting home zone”
- Test by walking around neighborhood, crossing boundary multiple times
What to observe: Count false triggers when walking past house without entering. Notice dwell time needed to prevent false alarms (30-60 seconds typical). Measure GPS accuracy variation (5-20m depending on sky view).
Compare Indoor Accuracy
Visit a large building with Wi-Fi and walk a known path:
- Use Wi-Fi-based location app (Google Maps indoors, if available)
- Record estimated positions every 10 meters along your path
- Compare to actual positions measured on building floor plan
- Calculate average error
What to observe: Wi-Fi typically gives 5-15m accuracy indoors. Notice how accuracy changes between open areas (better) and corridors surrounded by metal/concrete (worse). Positioning may “jump” discontinuously due to signal variations.
Geofence Battery Impact
Compare battery drain with geofencing on vs. off:
Treat the two-day comparison as a bounded experiment rather than a universal battery claim. Keep ordinary phone use, signal conditions, zone count, and observation time as comparable as practical; record the starting and ending charge and note unusual activity. Then interpret the difference alongside boundary responsiveness and false triggers. The result connects energy to the product promise: reduce scan or fix frequency only if the geofence still reacts within the accepted time and location uncertainty.
- Day 1: Enable geofencing app with 3 zones, check battery percentage at end of day
- Day 2: Disable geofencing, check battery percentage with same phone usage
- Calculate difference
What to observe: Geofencing battery use depends on radio, update policy, and device; measure it rather than using a generic 5–15% drain. Continuous GPS can be power intensive; replace the 30–50% per-day figure with a device- and workload-specific measurement.