Refactor geolocation request.