I am developing a phonegap app to find store location. I want to open native Google Map app with following direction interface -
I have the destination latitude and longitude and google map know my location. So I want to open google map app with direction. I have tried following -
var addressLongLat = $(this).data('lat')+','+$(this).data('long');
window.open('google.navigation:q='+addressLongLat);
Also try
var addressLongLat = $(this).data('lat')+','+$(this).data('long');
window.open('geo:q='+addressLongLat);
2nd one open Google Map but no direction and 1st one do nothing. I also try with anchor tag href but no luck. Webintent plugin also failed.Please anyone help me I am stuck for one week.