Original: The palace stands at the bottom of the Royal Mile in Edinburgh, at the opposite end to Edinburgh Castle.
Simplified: The Palace stands in Edinburgh at the bottom of the Royal Mile.