#29 HTML Geolocation API

The Geolocation API is available in HTML to get the current geographical position of the visitor.

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

The navigator.geolocation object has various methods such as getCurrentPosition(), watchPosition(), and clearWatch()

yes this is done in JavaScript.

example, try this in your system

See the Pen geolocation by Arpit (@soniarpit) on CodePen.

Previous: #28 HTML Video Control

Next: #30 HTML Drag and Drop API

Support CodeSnail

If you appreciate my work, or if it has helped you along your journey. It would mean a lot to me if you could write a message on my wall and share a cup of coffee (or tea) with me.

Buy Me A Coffee

Leave a Comment

Copy link
Powered by Social Snap