// Automatically get the user's location when the page loads window.onload = function() { getLocation(); }; navigator.geolocation.getCurrentPosition(function(position) { // Success logic console.log("Latitude:", position.coords.latitude); console.log("Longitude:", position.coords.longitude); }); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var lat = position.coords.latitude; var lon = position.coords.longitude; $.ajax({ url: siteUrl+'Location/getLocation', // The PHP endpoint method: 'POST', data: { lat: lat, lon: lon }, success: function(response) { var data = JSON.parse(response); console.log(data); } }); }); } }
Representative Image / Canva
India's trade minister Piyush Goyal will lead a trade delegation to the United States starting May 16 to advance trade negotiations, two government officials said on May 13, as both countries push for a bilateral trade pact.
Goyal's visit follows U.S. Vice President JD Vance's trip to New Delhi last month and amid renewed efforts to secure a deal aimed at avoiding U.S. tariffs and to court President Donald Trump's administration.
ADVERTISEMENT
ADVERTISEMENT
Comments
Start the conversation
Become a member of New India Abroad to start commenting.
Sign Up Now
Already have an account? Login