My wife is an avid runner. She uses a free app called map my run. Perhaps this is an app that will do what you are looking for to map your rides?
There is one from Victory called Victory Rides. It works great.
Victory Rides got bad reviews. But I have not used it myself
Which one is the bicycle version?