The Geolocation API in HTML5 allows the users to share their physical location with selected websites. This happens when JavaScript captures a user’s latitude and longitude and sends it to the back-end server for enabling location-aware features such as finding local businesses or showing location on a map.

BY Best Interview Question ON 12 Mar 2020