I'm an Android user, so I don't know if this option is available to iPhone users if you are one.
Google maps has an option to keep location history in "Your Timeline." To turn it on, click on your profile photo or avatar in the search bar at the top right corner of the map. That will open your Google Account options which will enable you to turn that feature on. When you go into the timeline, you will see options to edit the locations and timestamps.