UX Design · Study deck

Location Awareness: Context and Geofencing

A geofence event can arrive late or fire near a boundary.

UX Uma is your guide for this deck.

locationawareness
UX Uma, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: Core Concept: Context-aware systems detect user situation (location, time, activity, social setting) through sensor fusion and use this information to adapt behavior automatically, eliminating manual configuration and explicit commands.
  • Explain: The Problem: GPS accuracy is 5-15 meters in typical conditions, and can degrade to 20-50 meters in urban canyons (buildings causing multipath interference).
  • Explain: A hospital that needs to know which room a wheelchair is in (3-meter accuracy) does not need centimeter-precise UWB tracking.
  • Explain: One of the most common mistakes in location-aware IoT projects is over-specifying accuracy.
iotclass.org

Major section

MVU: Context Detection and Geofencing

Core Concept: Context-aware systems detect user situation (location, time, activity, social setting) through sensor fusion and use this information to adapt behavior automatically, eliminating manual configuration and explicit commands.

  • Privacy requires explicit user consent and local-first processing where possible.

Why it matters

Geofencing (triggering actions when crossing virtual boundaries) enables powerful automations like "unlock door when I arrive home" that make IoT invisible and valuable.

iotclass.org

Major section

Indoor Positioning Cost Tradeoffs

One of the most common mistakes in location-aware IoT projects is over-specifying accuracy.

  • A hospital that needs to know which room a wheelchair is in (3-meter accuracy) does not need centimeter-precise UWB tracking.
  • The cost difference is dramatic.
  • The 3-year TCO difference between BLE and UWB can be 5-7x.
iotclass.org

Major section

Geofencing Needs Dwell Time

The Problem: GPS accuracy is 5-15 meters in typical conditions, and can degrade to 20-50 meters in urban canyons (buildings causing multipath interference).

  • Without dwell time, normal GPS noise causes constant fence crossing events as the reported location bounces around the boundary.
  • Key Lesson: Geofence automation without dwell time is broken by design.
iotclass.org

Major section

Concept Relationships

Enables: Context-Aware Computing uses location as primary context signal for automation.

  • Privacy concern: GDPR Compliance location data is personally identifiable and requires explicit consent.
iotclass.org

Deck summary

Key takeaways

Core Concept: Context-aware systems detect user situation (location, time, activity, social setting) through sensor fusion and use this information to adapt behavior automatically, eliminating manual configuration and explicit commands.

  • One of the most common mistakes in location-aware IoT projects is over-specifying accuracy.
  • The Problem: GPS accuracy is 5-15 meters in typical conditions, and can degrade to 20-50 meters in urban canyons (buildings causing multipath interference).
  • Enables: Context-Aware Computing uses location as primary context signal for automation.
iotclass.org

Retrieval practice

Recall check 1 of 4

UX Uma says: answer from memory, then check your reasoning.

Q1A smart home app triggers 'Welcome Home' when the user's phone enters a 100-meter geofence, but users report false triggers when driving past on the highway 80 meters away. What is the best fix?

AReduce the geofence radius to 50 meters
BAdd a 30-60 second dwell time before triggering the action
CSwitch to UWB positioning for higher accuracy
DIncrease the geofence radius to 500 meters to avoid the highway
Show answer

Answer: B Dwell time filtering prevents false geofence triggers by requiring the device to remain inside the boundary for a minimum duration before firing the event.

iotclass.org

Retrieval practice

Recall check 2 of 4

UX Uma says: answer from memory, then check your reasoning.

Q2A hospital needs to track the location of portable medical equipment (wheelchairs, IV pumps, monitors) throughout the building with 2-3 meter accuracy. GPS is unavailable indoors. Which indoor positioning technology is most cost-effective for this asset tracking application?

ADeploy UWB anchors and tags across every ward to get centimeter-level precision far beyond the room-level requirement
BUse BLE beacons at corridor intersections with BLE tags on equipment for room-level tracking at lower cost
CUse existing Wi-Fi access points alone, accepting typical 5-15 meter errors for room-level equipment tracking
DInstall ceiling cameras throughout wards to visually track equipment despite line-of-sight and privacy risks
Show answer

Answer: B BLE beacons provide 2-3 meter accuracy, which meets the requirement, and are the most cost-effective indoor positioning solution for asset tracking.

iotclass.org

Retrieval practice

Recall check 3 of 4

UX Uma says: answer from memory, then check your reasoning.

Q3A delivery app shows "Driver is 50 meters away" using GPS data. The user goes outside but cannot see the delivery vehicle. What is the most likely explanation for this discrepancy?

AThe app is probably broken and should ignore all reported GPS fixes until the driver restarts it
BThe driver likely disabled location sharing, even though delivery apps usually require location to stay on
CThe phone receiver probably needs a software update because urban position errors are usually app bugs
DNearby buildings can reflect GPS signals, so the precise-looking 50-meter distance may be off by tens of meters
Show answer

Answer: D Standard GPS provides 5-10 meter accuracy in open sky conditions, but in urban environments, buildings cause multipath interference (satellite signals bouncing off structures) that can degrade accuracy to 20-50 meters.

iotclass.org

Retrieval practice

Recall check 4 of 4

UX Uma says: answer from memory, then check your reasoning.

Q4Place each location-awareness responsibility where it lives so you can distinguish a qualified position fix from stable geofence state and a bounded, privacy-aware context action.

APosition Fix and Quality Flags
BGeofence State and Dwell Time
CBounded Context Action and Privacy
Show answer

Answer: A Location awareness becomes safe context only when a qualified fix produces stable fence state and that state drives a minimal, consented, observable action.

Q5Complete the IoT notification toast component:

Atoast.classList.add('toast', toast-${type});
Btoast.class = 'toast ' + type;
Ctoast.className += type;
Dtoast.addClasses('toast', type);
Show answer

Answer: A classList.add() adds multiple CSS classes. appendChild() inserts the element into the DOM. setTimeout auto-dismisses the toast.

iotclass.org

Print reference

Answers 1 of 2

Answer key.

  1. B · Dwell time filtering prevents false geofence triggers by requiring the device to remain inside the boundary for a minimum duration before firing the event.
  2. B · BLE beacons provide 2-3 meter accuracy, which meets the requirement, and are the most cost-effective indoor positioning solution for asset tracking.
  3. D · Standard GPS provides 5-10 meter accuracy in open sky conditions, but in urban environments, buildings cause multipath interference (satellite signals bouncing off structures) that can degrade accuracy to 20-50 meters.
iotclass.org

Print reference

Answers 2 of 2

Answer key.

  1. A · Location awareness becomes safe context only when a qualified fix produces stable fence state and that state drives a minimal, consented, observable action.
  2. A · classList.add() adds multiple CSS classes. appendChild() inserts the element into the DOM. setTimeout auto-dismisses the toast.
iotclass.org