Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Google Maps or Apple Maps in iPhone or Other Mobile Device via Browser

I have links that go to Google Maps, but now since Apple updated to their own service my iPhone goes to the Google Maps website. Is there a way in HTML to show the Apple Maps link, when it's iOS6, and show the Google Maps link for all other devices. I am using ASP.NET MVC.

like image 590
Mike Flynn Avatar asked Dec 19 '12 15:12

Mike Flynn


People also ask

Can I use Apple Maps in a browser?

It works in Windows and Chrome OS, and with the DuckDuckGo app, you can even access Apple Maps on Android. Apple Maps in a browser works in the same way as Google Maps does. Whenever you search for anything, you'll see a Maps tab above the results.

What is the difference between Maps and Google Maps on iPhone?

Apple Maps is exclusive to Apple hardware — iPhones, iPads, and Apple Watches. It's built into all Apple-branded devices, even Macs. It's not available on devices outside the Apple ecosystem. Google Maps is a cross-platform service, made available on Android, iOS, iPadOS, web browsers, and so on.

Is Apple Maps or Google Maps better on iPhone?

Google Maps is the clear winner for the amount of data present and available. It sources its vast collection of information gathered from businesses, websites, users, and more. Apple Maps has a lot of data too, but even if it uses crowdsourced data similar to Google, it isn't sourcing from as many locations.


1 Answers

The solution is even easier than that and won't require any conditional statements:

  • When clicked from an iOS6 device, links to maps.apple.com/maps?q=cupertino are opened in Apple's native mapping application.
  • But on other mobile devices and computers, it redirects to Google Maps (at maps.google.com/maps?q=cupertino) instead.

So at this point, all you need to do is include the Apple Maps link and it should work as expected on non-iOS devices.



I mentioned this in a recent post that also touches on whether the same parameters can be used.

like image 157
Baumr Avatar answered Oct 28 '22 12:10

Baumr