This article explains how to add Google Maps functionality to CarPlay on an iPhone 5s or later running iOS 12 or later.
How to add Google Maps to CarPlay ios 14.2 to navigate in your car: SMARTDrive
Installing and adding new apps to CarPlay is generally simple. Here’s what you need to do.
Install Google Maps on your iPhone from the App Store.
Connect your iPhone to your car's CarPlay system.