There has been a question lately if Google and Apple collected data from a smart connected car. Sam says that to date, they don't, other than the location history from your phone unless you turn it off. Also, if you connect your phone to the car, your car GPS is more accurate than your phone, and depending on the manufacturer, that car may provide location data to your maps app.
And starting next year, a lot of cars will run Android Automotive for their infotainment systems. Android Auto will also send popup advertising based on your location data and will prompt you when your next service is due. Then you'll be able to connect and make an appointment through the car.