Believe it or not all Androids and iPhone have a way to track the history of where a person has been. It is amazing how much information we actually share with companies and Android or iOS software. They track our every move and it is recorded in a database. Here is how you can find what you need.
On all Android devices, there is a Timeline Page on the device. All you need to do is bring this up on your phone and you'll find out all the locations you've been at.
On the timeline page, you can either turn on or off this feature.
With the iOS device, it isn't that simple. You'll need Google Maps to send the information to the Timeline Page on your phone.
If you don't activate Google Maps on the device it won't track your phone's location history. So if you need to do this make sure it is turned on so you can see the information on the timeline of the phone.