Extracting GPS data from database

Can anyone tell me how to extract all the gps data stored by device trackers in the Home Assistant database?