So I have a pretty simple bit of JS using the navigator.geolocation.getCurrentPosition jammy.
$(document).ready(function(){
$(\"#business-locate, #people-l
I found, that this way doesn't work
navigator.geolocation.getCurrentPosition(function() {...}, function(err) {...}, {});
But
this way works perfect
function storeCoordinates(position) {
console.log(position.coords.latitude, position.coords.longitude);
}
function errorHandler() {...}
navigator.geolocation.getCurrentPosition(storeCoordinates, errorHandler, { enableHighAccuracy: true, timeout: 20000, maximumAge: 0 });