You can disable Google Maps' Timeline history of the places you've visited. You can also disable Maps from tracking you through the app's settings.