Apparently any iOS device keeps an accurate record of it's location right down to the second. This file is stored unencrypted on the iOS device, as well as updated on the computer each time the device syncs with iTunes.
A sample program has been released to visualize this data onto a map, but it runs only on Mac. Has anyone tried it?
For some background reading: