The Secrets of Snapchat Filters: How Do Apps Track Speed?

Click For Summary
SUMMARY

Snapchat filters that display speed utilize GPS technology to track the user's velocity at the moment a picture is taken. While GPS accuracy typically ranges within ±10 meters, this level of precision is often sufficient for calculating speed over longer distances, such as during a run. Users have noted that instantaneous speed calculations may not be entirely accurate, suggesting the use of algorithms like multi-reading averages or decaying averages to estimate speed. Overall, GPS remains the primary tool for speed tracking in applications like Snapchat.

PREREQUISITES
  • Understanding of GPS technology and its accuracy limitations
  • Familiarity with speed calculation methods in mobile applications
  • Basic knowledge of algorithms for averaging data
  • Experience with mobile app development concepts
NEXT STEPS
  • Research the accuracy of GPS in mobile applications
  • Learn about algorithms for calculating instantaneous speed
  • Explore the use of accelerometers in speed tracking
  • Investigate how other apps implement speed tracking features
USEFUL FOR

Mobile app developers, data scientists, and anyone interested in the mechanics of speed tracking in applications like Snapchat.

guitarphysics
Messages
241
Reaction score
7
I don't know if many of you have snapchat, but it's basically an app for taking pictures and sending them to others. Something you can do is add a filter that shows what speed your phone was going while the picture was taken.. How is this done? Or, more generally, how do things like running apps track speed?
I'm guessing GPS, but the reason I'm doubtful is that usually my phone's GPS gives me my location to an accuracy of around \pm10 meters, and that's after I've let the GPS settle down for a minute or so. So I don't know if that's the way they do it. Anybody know, or have any ideas?
 
Computer science news on Phys.org
guitarphysics said:
I don't know if many of you have snapchat, but it's basically an app for taking pictures and sending them to others. Something you can do is add a filter that shows what speed your phone was going while the picture was taken.. How is this done? Or, more generally, how do things like running apps track speed?
I'm guessing GPS, but the reason I'm doubtful is that usually my phone's GPS gives me my location to an accuracy of around \pm10 meters, and that's after I've let the GPS settle down for a minute or so. So I don't know if that's the way they do it. Anybody know, or have any ideas?
Based on the replies in this thread, it looks like it done using various tools (including GPS) and isn't very accurate.
How can I find the velocity using accelerometers only?
 
It's GPS. And while it is true that it isn't as accurate as one would hope, over a long walk/run, the error becomes negligible. For example, if you run 3k and the distance is off by 10m, that's only 1/3 of 1%.
 
russ_watters said:
It's GPS. And while it is true that it isn't as accurate as one would hope, over a long walk/run, the error becomes negligible. For example, if you run 3k and the distance is off by 10m, that's only 1/3 of 1%.
The OP was looking for instaneous speed at the time that a picture was taken.
 
Borg said:
The OP was looking for instaneous speed at the time that a picture was taken.
Fair enough: I don't know the algorithm by which it calculates "instantaenous speed", but suffice to say, is isn't instantaneous speed. Just a guess, but I suspect it uses a multi-reading average or decaying average.
 

Similar threads

  • · Replies 41 ·
2
Replies
41
Views
5K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
19
Views
6K
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K