Refactor the GPS code to a method within the GeoLocation class