How to track by gps

There are lots of tutorials a short search away.

The add-on readme has lots of examples in it too including how to show the current location using the built in OpenMap.
https://www.openhab.org/addons/bindings/gpstracker/#sitemaps

OH is only going to know the most recently reported location. You will have to mess with the GPSLogger app settings to control how often it reports and to make sure that it doesn’t get shutdown in the background.