How to synchronize GPS Neo 7M with motor servo?

I have a project to makes a navigation device and a i use a GPS Neo 7m to get a data location and motor servo that the funtion is like a compas that the arm can move (to show direction) when the GPS inputted got a date location.
Do you have example program for my problem?