Assume I have established a navigation route on a service like google maps. How do I determine if a user is traveling along that route and in which direction? Sort of like a GPS device knows if you are following the specified route or not, but also with heading info.
I'm a python hacker, but examples or resources in any language would be fine.
Thanks in advance!