What geolocation API method is used to retrieve the current geographic location of the user?

The most commonly used geolocation API method to retrieve the current geographic location of the user is the HTML5 Geolocation API. This API allows websites to request the user's location information, which is then used to provide location-based services.