Gps logger with thunkable to log gpx files

I want to create a thunkable project to record gps data and save the recorded data as gpx file.
Therefore I want to know if this is possible and how can solve this.
kindly regards for any help

I’m not sure about how to save something as a gpx file (maybe with an API or Javascript?) but how much have you worked with the location sensor?