How to use cordova-waze-navigator plugin

2019-08-15 16:50发布

问题:

How to use this plugin

https://github.com/adaltojunior86/cordova-waze-navigator

I've looked all over the internet but have not yet found a way to use github has nothing explaining how to use

回答1:

I think the answer is there is no documentation for that plugin, so if you want to use it, you'll have to look at the source code, which implies a usage of:

WazeNavigator.navigateByPosition({
    lat: 50, // latitude
    lng: -4 // longitude
});

Or you could use the updated version 3 of phonegap-launch-navigator plugin, which now supports launching Waze, along with many other navigation apps and does have documentation.