Know when user is turning to left or right

Hello, I am making a GPS-Like App and I need to know when the users turns to the left or the right to rotate his position marker.

How could I detect this?

Thanks.