function checkUserGeoLocation() { // Check if the browser supports geolocation if (navigator.geolocation) { // Request the user's location navigator.geolocation.getCurrentPosition( function(position) { // Success callback const latitude = position.coords.latitude; const longitude = position.coords.longitude; console.log(`Latitude: ${latitude}, Longitude: ${longitude}`); }, function(error) { // Error callback console.error(`Error Code = ${error.code} - ${error.message}`); } ); } else { console.error("Geolocation is not supported by this browser."); } } //opencage API key d3086da280e0428ab6cc58d21eba1003 //sagalaxya71Something@23002300ABCD