The central gateway is part of the Imperial Way , a stone flagged path that forms the central axis of the Forbidden City and the ancient city of Beijing itself , and leads all the way from the Gate of China in the south to Jingshan in the north .