got query to work with geolocation