Factors like commute length, energy consumption, pollution levels and even how many vegan restaurants informed the new research.