Development of the compact city index and its application to Japanese cities