Created
November 28, 2008 22:11
-
-
Save brianleroux/30113 to your computer and use it in GitHub Desktop.
PhoneGap get geolocation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getLocation(); | |
// GAP will invoke this function once it has the location | |
function gotLocation(lat, lon) { | |
$('lat').innerHTML = "latitude: " + lat; | |
$('lon').innerHTML = "longitude: " + lon; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment