Open Platform Specific Native maps in Nativescript


#1

Hi there, I would like to open platform specific Native Maps using Nativescript, back in Cordova I was able to do something lile this:

window.open((getDevicePlatform().toLowerCase() === 'android') ? 'geo://0,0?q='+Address : 'maps://?q='+Address, '_system');

Is there any way in Nativescript to implement this functionality?

Thanks…


#2

Yep, the easiest way is probably looking at the way the nativescript-directions plugin implemented it: https://github.com/EddyVerbruggen/nativescript-directions