try catch geolocation