The latest build of IOS 7 Beta will stores your movements and locations by default and can display those locations, time stamped and with duration, within the Apple Maps app. It’s impressive and incredibly spooky.
I tried it out on my phone and it is accurate enough for me to be able to fill out a time card at work using the data. It displays every visit to the office, along with the time I got there and when I left. It will be interesting to see if this feature is enabled by default in the final shipping version of IOS7.