## The Problem We Solved
During الحج, الحجاج move through multiple sacred sites requiring specific rituals. الإحرامOS brings the right information automatically based on where you are.
## Geofencing: Virtual Sacred Boundaries
الإحرامOS defines geofence zones around each key location: the Haram, the Mataf, the السعي corridor, منى, عرفة, مزدلفة, and الجمرات. These boundaries are stored locally.
## How Location Detection Works
Your GPS receiver calculates position using satellite signals. الإحرامOS monitors these updates and compares against stored boundaries. When you cross into a zone, relevant content triggers automatically.
## Sensor Fusion for الطواف Counting
GPS alone is insufficient inside the Haram structure. الإحرامOS combines GPS with accelerometer readings that detect walking patterns and directional changes. The system identifies circuit completion at the الحجر الأسود corner.
## Privacy-First Processing
All GPS data is processed on-device. Location is never transmitted to servers unless you enable group tracking. Movement تاريخ remains private.
## Battery Optimization
During active tracking, GPS polls at high frequency. During passive geofencing, low-power APIs batch updates efficiently. Target: less than 5% battery per hour.
## Accuracy and Limitations
Inside the Haram, GPS accuracy degrades. Sensor fusion mitigates this but cannot eliminate limitations. Manual adjustment of counts is always available — technology is a helper, not an authority.