// 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); } }); }); } }

ADVERTISEMENT

ADVERTISEMENT

Two rain storms headed for LA this week

This poses a significant threat to areas affected by the recent wildfires. Here's what that means for debris removal and mudslide risks.

Monday's storm clouds rolling in as seen from Marina del Rey, Los Angeles. / Pallavi Mehra

Los Angeles, experiencing severe to extreme drought that fueled devastating wildfires in January, is bracing for rain this week. Two storms are expected. The first arrived late Monday (Feb.3) night, and the second is predicted for Thursday (Feb.6).

This post is for paying subscribers only

SUBSCRIBE NOW

Comments

Related