(A) "When you go via a particular place, you go through that place on your way to another place" → (II) through-to correctly describes passing through an intermediate location.
(B) "When you are going up or down a road, you're going along it towards one end of it" → (IV) along-towards appropriately indicates movement parallel to the road in a direction.
(C) "When you are asked to wait outside a room, you have to be out of the room, but you mustn't move too far from it" → (I) out of-from properly conveys being outside while maintaining proximity.
(D) "We flew straight from London to San Francisco" → (III) from-to indicates direct point-to-point travel between two cities.