You can change the default browser on your iPhone, but you still can’t change the default maps app, at least not officially. This is annoying for those who prefer something like Waze, which has superior traffic data and a ton of other features. If you get a navigation link in iMessage, it will open in Apple Maps, and if you find one in Google Search, it will open in Google Maps. But as luck would have it, there is a way to make any maps link in Safari open in the maps app of your choice.
How do I set Google Maps as default app on an APPLE device? | Use Google Maps Defaulty on iOS
This is possible thanks to a simple Safari extension called Map Redirect for Map Links. This app setting allows any link to open in Apple Maps, Google Maps, Waze, Bing Maps, or HERE WeGo Maps. If you want different map apps for different purposes, you can set the extension to ask you which app you want to use each time.
Start by downloading the Map Redirect for Map Links app from the App Store ($1.99). When you open the app, you’ll be given instructions on how to set it up in Safari. To enable it, open Safari and tap Aa after opening a web page. Choose Manage Extensions at the top and enable Map Redirect.
In Safari’s Aa menu, tap Map Redirect to customize the app. Here you can choose your target app so that every Maps link will open in that app by default, or you can configure the extension to prompt you to tap a link every time. This is a good idea if, for example, Apple Maps is your default, but you occasionally use Waze to check for traffic on longer routes. If you ever want to change the default apps, you can return to these settings at any time.