Campinas , located approximately 100 kilometers northwest of Brazil 's largest city São José do Rio Preto , was the most polluted city in the country in 2019 , based on fine air particulate matter concentration ( PM2.5 ) .