The railway , which connects Seoul and Pyongyang , was called the Gyeongui Line before Korea was divided in the 1940s . The railway , which connects Seoul and Pyongyang , was called the Gyeongui Line before division in the 1940s .