How do I measure how far I have run with lua program? Preferably from gps locations. I have both longitude and latitude.
closed as not a real question by gnat, Abizern, shanethehat, fancyPants, EdChum Feb 13 '13 at 9:52
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
I would use a closure along with the pythagorean theorem to do so:
At the startup of your applicationsd, you would call
Afterwards, you set up your application to call