adding error return to getGeoLoc