// 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 / Unsplash
India's gems and jewellery industry is breathing a momentary sigh of relief after US President Donald Trump paused harsh tariffs that threatened to hit lucrative exports and tens of thousands of jobs.
At manufacturing and processing hubs across India, exporters and buyers worried over how they would absorb Trump's gruelling 26 percent tariff on a multi-billion dollar industry.
ADVERTISEMENT
ADVERTISEMENT
Comments
Start the conversation
Become a member of New India Abroad to start commenting.
Sign Up Now
Already have an account? Login