How could i use GPSD with Gpredict to set ground station

I’m using raspberry pi 3 in satellite tracking project and i need to set ground station using GPS but i don’t now how to use gpsd to get gps data to gpredict