Google maps has the route of the procession from the cathedral to the castle on their view:
You can see that they had to leave the castle grounds so there could be viewing. Otherwise the couple could have walked from their apartments to the church and back again.