// 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); } }); }); } }
Fill up this form to reach our stunning Streamed team and click on send message
Welcome to TLC Car Rental, your premier source for reliable and affordable car rentals in New York City. With a wide range of vehicles to choose from, including sedans, SUVs, and vans, we have the perfect car for your needs. Our team is dedicated to providing exceptional customer service and ensuring that your rental experience is smooth and hassle-free. Whether you’re visiting for business or pleasure, we have the perfect car to get you where you need to go. Contact us today to reserve your rental car and experience the TLC difference!
ADVERTISEMENT
ADVERTISEMENT









