Google offers the option to store a timeline of places in which a user's location-enabled phone has been. The account-holder in question can also disable this ability and delete this information if they choose. The latest update to the app involved adds buttons that automates this procedure after 3 or 18 months.
https://www.notebookcheck.net/Auto-delete-your-Google-Location-History-with-this-new-setting.426474.0.html