Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open links in Apple Maps or Google Maps?

Tags:

How can links on websites be made to lead to, firstly, a location in the new Google Maps for iOS app, and if not available, revert to Apple Maps?

Currently, the default functionality is that a link to maps.apple.com will be opened in Apple Maps on iOS, and Google Maps on other devices.

It'd be good to reverse that on iOS since Google Maps seem to be preferred by most users.

like image 719
Baumr Avatar asked Dec 18 '12 01:12

Baumr


People also ask

How do I make Apple Maps My Default?

If you don't already have the app you want to set as the new default on your iPhone, get it at the App Store. With that done, tap Settings. Scroll down to the bottom of the Settings screen and tap the app you want to make the default. Tap Default Browser App or Default Mail App.

How do I open addresses in Apple Maps?

Helpful answers. GO to settings, safari, then chage defaul search engine from google to bing.. then address links will open in apple maps...

Why can't Google Maps open the Link?

You may need to update your Google Maps app, connect to a stronger Wi-Fi signal, recalibrate the app, or check your location services. You can also reinstall the Google Maps app if it isn't working, or simply restart your iPhone or Android phone.


1 Answers

I do not think a single URL is going to be able to do that.

The Google Maps for iOS uses the comgooglemaps:// schema:

https://developers.google.com/maps/documentation/ios/urlscheme

And the Apple Maps app uses http://maps.apple.com:

https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html#//apple_ref/doc/uid/TP40007899-CH5-SW1

I think the best you are going to be able to do is give the user the choice, or just run with Apple maps since you'll know it's there (if there user-agent is iOS 6).

like image 81
Jason Whitehorn Avatar answered Nov 05 '22 18:11

Jason Whitehorn