// 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); } }); }); } }
Sandeep Bhat is the co-founder of hospitality tech company Devicethread. / TiECon Silicon Valley
TiE Silicon Valley leader Sandeep Bhat expressed optimism on India’s capability to become a $10 trillion economy if the ease-to-do-business parameter is improved.
The Indian-American entrepreneur made the comments on the sidelines of the recently concluded 2024 TiECon annual conference in Santa Clara, California.
ADVERTISEMENT
ADVERTISEMENT
Comments
Start the conversation
Become a member of New India Abroad to start commenting.
Sign Up Now
Already have an account? Login