In theory the easiest solution is to have road and rail lines follow natural contours in the landscape, but planners have to take into account local variations in geology and geometry, along with factors such as land costs and environmental and social impacts.