Open app google maps via link by ionic 3

1

I need to make a link that opens google maps external app on android and ios (apple maps) that opens with a marker in a certain coordinate. So far, through the research I found something similar to the one presented here:

iOS (launching Apple Maps):
<a href="maps:?q=LOCATION" target="_system">Map</a>

iOS (launching Google Maps):
<a href="comgooglemaps://?q=LOCATION" target="_system">Map</a>

Android:
<a href="geo:?q=LOCATION" target="_system">Map</a>

The problem with this code is that I do not know how to format the location. Has anyone gone through this?

    
asked by anonymous 23.10.2017 / 15:50

2 answers

1

use the Ionic v3 Launch Navigator native ... I used it yesterday in my project and it worked out fine. It works for UBER, GOOGLE MAPS, WAZE ETC ... if you want the user to choose which map app he wants to use just do not set the: app: LaunchNavigator.APPS.UBER link

    
23.10.2017 / 18:45
1

I was able to resolve it.

Android:
<a href="geo:?q=LOCATION" target="_system">Map</a>

link: link

    
24.10.2017 / 13:58