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