I'd like to use media queries (or any other means) in my website to detect the user agent and display a link that will open in Apple Maps if the user is on an iOS device or in Google Maps if the user is on an Android device.
The only other related question I can find is here and it's quite old.