There are many free mobile apps for collecting GPS data. Pick any one of them and be sure that the app is able to export data to a
.gpx file, which is the standard format for GPS data.
I used Strava to record a bus ride that I took from Hohoe, a town in the mountains of Ghana's Volta Region, to my home in Accra.
Below is a map and some statistics created by Strava:
from IPython.display import Image Image("https://i.imgur.com/k3SgrW2.png")