Autonomous robot drive in straight line using GPS

I need my robot to maintain move in a straight line by using the data from GPS NEO 6M. But you said that gps could only give location but not make the robot move straight. Because the main hardware that I need to use is the GPS in order to make the robot move autonomously.