With a small magnet fixed to a wheel or other rotating part, a Hall Effect sensor can detect each revolution. Pretty simple. Always available and accurate. Disadvantage is it 's a custom installation (would be far easier on a bike than a car). Advantages of GPS are portability and as jremington said gives more data and more interesting.