Skip to content

yangzy/geo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

var options = { enableHighAccuracy: true, timeout: 5000, maximumAge: 0 };

function success(pos) { var crd = pos.coords;

console.log('Your current position is:'); console.log(Latitude : ${crd.latitude}); console.log(Longitude: ${crd.longitude}); console.log(More or less ${crd.accuracy} meters.); };

function error(err) { console.warn(ERROR(${err.code}): ${err.message}); };

navigator.geolocation.getCurrentPosition(success, error, options);

geo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published