writing code for computing features from gps tracks for label training