Question: when did the japanese emperor move the capital to heian-kyo
Answer: It was the official capital of Japan for over one thousand years , from 794 to 1868 with an interruption in 1180 .