You can stop Google from tracking your iPhone by disabling the "Location History" option in your account settings.
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.