Is it possible to start navigation on Google maps in iOS instead of apple maps

In my application, I used my application to launch the Apple maps application and gave it the start and end coordinates so that the user can move around.
Is it possible to use the same, but with google maps.
Does it require downloading an application or something like that?
Is there any example of using Google to navigate from location to location?

+4
source share
2 answers

You can use the Google URL scheme to navigate from location to location . The documentation is great, but you have to check if the Google Maps application exists on the user's iPhone.

OPTION 1:

Example:

If user have iOS 5 and older, use Google URL Scheme, If user have iOS 6 and google maps installed, use Google URL Scheme If user have iOS 6 and google maps not installed, use Apple maps URL scheme 

Google URL Schema Documentation

Caution, when using the Google URL scheme, the application switches to the Google Maps application.

OPTION 2:

Is it possible to use the same, but with google maps

Google Maps for iOS SDK

Does it require downloading an application or something like that?

Yes, the Google Maps SDK for iOS

+6
source

iOS> = 6.0 uses Apple maps, while <6.0 uses Google maps. If you want to show Google maps in all cases, post a web view and use Google web maps.

0
source

Source: https://habr.com/ru/post/1490492/


All Articles