The 2 million figure might be for the province. The province is divided into several cities that aren't that big. What we call Yogyakarta city has some parts of Sleman and Bantul, along with the actual Yogyakarta which is quite small. Indonesian myself.