What exactly do you expect ?
Do you want somebody to write the program for you ?
Did you have a look at the User's Guide chapter 6 GPS ?
As already asked.
Did you have a look at the User's Guide chapter 6 GPS ?
There you have a full GPSExample with source code and explanations.
Did you have a look at Erels GPS Tutorial ?