The border could be crossed legally only through a limited number of air, road, rail and river routes. Foreigners were able to cross East German territory to or from West Berlin, Denmark, Sweden, Poland and Czechoslovakia.