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

Mike Flynn picture Mike Flynn · Dec 19, 2012 · Viewed 7.6k times · Source

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.

Answer

Baumr picture Baumr · Jan 4, 2013

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

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.