Freeletics Jun 3, 2019

iOS GPS Testing and Location Services

Article Summary

Trevor Phillips from Freeletics built a comprehensive GPS testing framework that improved location accuracy from 7% error down to 1.68%. Here's how they systematically validated every improvement.

The Freeletics engineering team needed precise distance tracking for running workouts, so they collected real GPS data from employees, analyzed the noise patterns in iOS CLLocation data, and built a Kalman filter to improve accuracy. They created 54 test scenarios simulating different conditions to validate their approach.

Key Takeaways

Critical Insight

By systematically collecting real data, simulating noise patterns, and applying Kalman filtering, the team reduced GPS tracking errors to under 1.7% in worst case scenarios.

The article includes full Swift implementations of the Kalman filter and the Box-Muller transformation for generating realistic GPS noise.

Recent from Freeletics

Related Articles