public/js/google-location/set-address.js
// as supplied by the browser's 'navigator.geolocation' object.
as supplied by the browser's 'navigator.geolocation' object.
as supplied by the browser ' s ' navigator . geolocation ' object .
function geolocate() {
    console.log("geolocating...");
    if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(function(position) {
            console.log(position);
            let geolocation = {
                lat: position.coords.latitude,
                lng: position.coords.longitude
            };
            let circle = new google.maps.Circle({
                center: geolocation,
                radius: position.coords.accuracy
            });
            autocomplete.setBounds(circle.getBounds());
        });
    } else {
        console.log("no");
    }
}
function geolocate ( ) { console . log ( "geolocating..." ) ; if ( navigator . geolocation ) { navigator . geolocation . getCurrentPosition ( function ( position ) { console . log ( position ) ; let geolocation = { lat : position . coords . latitude , lng : position . coords . longitude } ; let circle = new google . maps . Circle ( { center : geolocation , radius : position . coords . accuracy } ) ; autocomplete . setBounds ( circle . getBounds ( ) ) ; } ) ; } else { console . log ( "no" ) ; } }
as supplied by the browser's 'navigator.geolocation' object.
as supplied by the browser ' s ' navigator . geolocation ' object .