Javascript Web Geolocation API

Locate the User’s Position

The HTML Geolocation API is used to get the geographical position of a user.

Since this can compromise privacy, the position is not available unless the user approves it.

Note

Geolocation is most accurate for devices with GPS, like smartphones.


Browser Support

The Geolocation API is supported in all browsers:

Chrome Edge Firefox Safari Opera
Yes Yes Yes Yes Yes

Continue reading Javascript Web Geolocation API