Original: It is located on high ground from the northern shore of the Firth of Forth on the route of major road and rail crossings across the firth to Edinburgh and the south .
Simplified: It sits on high ground three miles from the northern shore of the Firth of Forth , northwest of Edinburgh , and was an ancient capital of Scotland .