Some security features were discovered in the browser to stop the use of JavaScript in the user's location without their consent. Now you can use the following code to get the user's location. It will open a tooltip window allowing the user to get his / her location.
var recieveLocation = function(pos) {
console.log(pos);
}
navigator.geolocation.getCurrentPosition(recieveLocation);
. , , .
API Google Map:
https://developers.google.com/maps/documentation/javascript/examples/geocoding-simple
. - HTTPS . . Mozilla Firefox :
[] getCurrentPosition() watchPosition() . , , HTTPS.
SSL- , -, .