Not free but inexpensive is AllSportGPS by Trimble Outdoors.com. Does more than just biking but I use it mostly for biking. You can create trips, follow them on your phone or just have your phone follow you. Keeps track of miles, elevation, speed and more. Uploads all stuff to a web page online also. There is a trial program also.
Trimble Outdoors