According to the United Nations, two-thirds of the world’s population will live in urban areas by 2050, leading many—from engineers to political leaders—to concentrate on developing smart-city initiatives.