example code with live update geolocation