The first one means "imperial city", while the other means "capital". However, the latter is now used. We don't call London by the first term since the monarchy is no longer absolute. Same reasoning for Tokyo. However, before WWII, it can be used to described in such a way.