updated google_geolocate function to have a return value parameter