Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created November 28, 2008 22:11
Show Gist options
  • Save brianleroux/30113 to your computer and use it in GitHub Desktop.
Save brianleroux/30113 to your computer and use it in GitHub Desktop.
PhoneGap get geolocation
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