JSFiddle - React, Tailwind, and code Playground

by João Vitor Scheuermann

JavaScript

const options = {
  enableHighAccuracy: false,
  timeout: 5000,
  maximumAge: 0
}

function sucess (pos) {
	console.log(pos)
}

function fail (err) {

}


navigator.geolocation.getCurrentPosition(sucess, fail, options)