A railway or railroad is a guided means of land transport , designed to be used by trains , for transporting both passengers and freight . A railway or railroad is a guided means of land transport , designed to be used by trains for moving both passengers and freight .