Launching external maps application


#1

I need to open another application, from longitude and latitude. Example waze, google maps. How I do this?


#2

Most apps captures their domain urls in their mobile apps, if you want to open Google Maps the simplest cross platform way of doing it may be using openUrl utility method.

utils.openUrl("https://www.google.com/maps/search/?api=1&query=centurylink+field");

You may read more about Google Map’s url schemes here. Besides you can also use Intents in Android / url schemes in iOS.


#3

Additionally, you can take a look at the nativescript-directions plugin’s source as that’s exactly what it does: https://github.com/EddyVerbruggen/nativescript-directions


#4

Excelent! I used openurl :slight_smile: