By integrating data from connected systems, sensors and devices, ‘smart cities’ better understand how municipal resources are used and where problems arise.