IoT Interfaces, Location and Privacy · 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
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • 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: The listed UWB anchor and tag costs, accuracy, battery life, and annual savings are hypothetical procurement inputs requiring vendor quotes and workload-specific measurements.
  • Explain: Geofencing (triggering actions when crossing virtual boundaries) enables powerful automations like "unlock door when I arrive home" that make IoT invisible and valuable.
  • Explain: Without dwell time, normal GPS noise causes constant fence crossing events as the reported location bounces around the boundary.
iotclass.org

Major section

Start With the Decision

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

  • Context logic must handle uncertainty before it changes a user workflow.
  • Why It Matters: Users expect smart devices to be actually smart - anticipating needs rather than requiring constant input.
  • 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

Code Example: Geofence Trigger Engine

The listed UWB anchor and tag costs, accuracy, battery life, and annual savings are hypothetical procurement inputs requiring vendor quotes and workload-specific measurements.

  • The next design question is whether the chosen accuracy tier is worth its installation and operating cost.
  • Trigger probability also depends on distance from the boundary and the location-error distribution.
  • One of the most common mistakes in location-aware IoT projects is over-specifying accuracy.
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.
  • The following before/after values are exercise inputs, not measured company outcomes.
  • 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 applies when location data identifies a person: document a lawful basis and transparent purpose.
  • Consent is one possible basis, not a universal requirement.
  • What to observe: Wi-Fi typically gives 5-15m accuracy indoors.
iotclass.org

Deck summary

Key takeaways

How this chapter connects to other IoT concepts:

Foundation for: GPS Positioning, Indoor Positioning, and Privacy Considerations build on technology overview presented here.

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

Applied in: Smart Home Automation geofencing triggers heating, lighting, and security based on location.

Privacy concern: GDPR Compliance applies when location data identifies a person: document a lawful basis and transparent purpose.

iotclass.org

Retrieval practice

Recall check 1 of 5

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

Q1A smart home app must keep a 100-meter arrival zone, but a phone passing through it on a highway triggers Welcome Home. What should filter brief pass-throughs without shrinking the zone?

AAdd a 30-60 second dwell time before triggering the action
BReduce the zone to 50 metres because the smaller boundary gives more precise arrival detection.
CSwitch to UWB positioning for higher accuracy
DIncrease the zone to 500 metres because the larger boundary catches arrival before the highway turn.
Show answer

Answer: A 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 5

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

Q2A phone position jitters near a home boundary and sends repeated enter and exit events. Which rule limits this flapping?

ATrigger an event on each noisy boundary fix.
BMake the entry boundary larger than the exit boundary.
CIgnore location quality and keep every transition.
DUse an outer exit boundary and dwell before changing state.
Show answer

Answer: D Use an exit boundary farther out than the entry boundary, with a stable dwell before changing state.

iotclass.org

Retrieval practice

Recall check 3 of 5

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

Q3A hospital needs room-level (3-5 meter) tracking for portable medical equipment. A site trial shows calibrated BLE zones meet that requirement at a lower installed cost than UWB; GPS is unavailable indoors. Which option fits this measured need?

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

Answer: C The site's calibrated BLE trial meets the 3-5 meter room-level requirement at lower installed cost than UWB.

iotclass.org

Retrieval practice

Recall check 4 of 5

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

Q4In a dense urban street canyon, a delivery app shows "Driver is 50 meters away" from a recent GPS fix. The user goes outside but cannot see the delivery vehicle. What positioning error could explain the discrepancy?

AThe reflected GPS signals can shift the position by tens of meters.
BThe app is probably broken and should ignore all reported GPS fixes until the driver restarts it
CThe driver disabled location sharing because the delivery app can continue working with background location off.
DThe phone receiver probably needs a software update because urban position errors are usually app bugs
Show answer

Answer: A 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 5 of 5

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

Q5What location-triggered operation respects consent, retention, ownership and a safe fallback?

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

Answer: C A bounded context action uses only necessary location evidence, respects consent and retention limits, names an owner and safe fallback, and records what automation occurred.

Q6Complete 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. A · 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. D · Use an exit boundary farther out than the entry boundary, with a stable dwell before changing state.
  3. C · The site's calibrated BLE trial meets the 3-5 meter room-level requirement at lower installed cost than UWB.
iotclass.org

Print reference

Answers 2 of 2

Answer key.

  1. A · 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.
  2. C · A bounded context action uses only necessary location evidence, respects consent and retention limits, names an owner and safe fallback, and records what automation occurred.
  3. A · classList.add() adds multiple CSS classes. appendChild() inserts the element into the DOM. setTimeout auto-dismisses the toast.
iotclass.org