A fork of Apple's Breadcrumb sample code hastily modified to always log the phone's location to a CSV.
Open up the app and make sure it's running every once in a while.
Open your phone in the iTunes Device pane, click on Apps, and drag the CSV files into a folder.