Redirect to google maps app

Redirect to google maps app

  

i want my app can redirect to google maps app when we click button location. I can already in Android redirect to google maps app (Surabaya, Indonesia) but when i tried in iOS nothing happened. 


SyntaxEditor Code Snippet

"geo:-7.2891660,112.7343980;u=35"

in Android successed but in iOS nothing happened. than i tried again for iOS 


in Java Script 

window.location = 'geo:40.765819,-73.975866'

in RedirectToURL

"https://www.google.com/maps/dir/?api=1"

but the results are not what I want, i want the result display location


what should i do ?

Hi Zainal,

A quick Google turns up this.

Kilian Hekhuis wrote:

Hi Zainal,

A quick Google turns up this.

Hi Kilian,

does that make me able to open google maps app in android and ios? or only in iOS, because i need how to open in Android and iOS

It seems only for iOS, I'm not sure how to do it cross-platform. If you Google around you can find the answer though, most likely.

Solution

Hi Zainal,

Digging ever so slightly deeper, on the link Kilian provided you have documentation on Maps URLs for all platforms that should allow you to open Google Maps on any platform if it is installed, or the web version if it is not.

Solution

Thanks for the digging Jorge!

Jorge Martins wrote:

Hi Zainal,

Digging ever so slightly deeper, on the link Kilian provided you have documentation on Maps URLs for all platforms that should allow you to open Google Maps on any platform if it is installed, or the web version if it is not.


Hi Jorge

do i can add marker in google maps app ? so not only display a maps