Skip to content

Instantly share code, notes, and snippets.

@ThomRoman
Last active August 29, 2019 22:03
const coords = navigator.geolocation.getCurrentPosition(position=>{
console.log(position)
let coord = position.coords
let lat = coord.latitude
let long = coord.longitude
console.log(lat,long)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment