GPS data analysis

I'm gonna go tru you lines of code.

But One thing is for sure. Programming every thing on a single line look good in you code. But it make it harder to debug when there is a problem. May I suggest to do a multi-line until everything work?