maps://?q=LAT,LNG
geo:LAT,LNG
geo:0,0?q=LAT,LNG
geo:0,0?q=LAT,LNG(LABEL)
| var geocoords = lat + ',' + lng; | |
| if (iOS) { | |
| window.open('maps://?q=' + geocoords, '_system'); | |
| } | |
| else { | |
| var label = encodeURI('7 East Street'); // encode the label! | |
| window.open('geo:0,0?q=' + geocoords + '(' + label + ')', '_system'); | |
| } |
This worked for me!! 2024 Cordova android