move the getGeolocation method to Geolocation