A snowstorm and strong winds pounded northern and western Germany on Sunday, forcing trains to cancel trips and leading to hundreds of road accidents. Police said 28 people were injured on icy roads.

Authorities brought homeless people into warm shelters amid the sub-zero temperatures.

National train operator Deutsche Bahn said main train routes between Hamburg and Hannover, Berlin and the west were canceled as snowdrifts piled up on the tracks and power lines. Some train connections in the east were also canceled, though most of the snow came down in the northwest.

Passers-by walk through the snow in the morning on the banks of the Elbe river against the backdrop of the old town in Dresden, Germany, Sunday, Feb. 7, 2021. (Sebastian Kahnertdpa via AP)

Passers-by walk through the snow in the morning on the banks of the Elbe river against the backdrop of the old town in Dresden, Germany, Sunday, Feb. 7, 2021. (Sebastian Kahnertdpa via AP)

Police in the western state of North Rhine-Westphalia said early Sunday they had counted 222 accidents due to the bad weather conditions since Saturday afternoon. They said two people among the 26 were severely injured.

The German Weather Service DWD urged people to stay at home. In the western city of Muenster, among the hardest hit places in the country, there was so much snow on the streets that ambulances could no longer drive. More than 30 centimeters (almost 12 inches) of snow had fallen, piling up to 1 meter (over 3 feet) in some parts, and more snow was expected to fall on Sunday.

City authorities in the western town of Hagen walked through the streets at night waking up homeless people sleeping outside and taking them to shelters, the German news agency dpa reported. In Berlin, the capital's biggest shelter, a tent city on the outskirts, was cleared early Saturday to make sure people don't freeze to death in sub-zero temperatures.

A clearing vehicle clears the snow in the city centre in the early hours of the morning on Sunday, Feb. 7, 2021 in Wernigerode, Germany. Deep Tristan has caused huge amounts of snow in the Harz mountains, like here in Wernigerode. (Matthias Beindpa via AP)

A clearing vehicle clears the snow in the city centre in the early hours of the morning on Sunday, Feb. 7, 2021 in Wernigerode, Germany. Deep Tristan has caused huge amounts of snow in the Harz mountains, like here in Wernigerode. (Matthias Beindpa via AP)

While the west of the country was freezing, southern Germany experienced balmy, spring-like temperatures.

The unusual weather and temperature divide was caused by a polar vortex pushing icy air from the Arctic toward northern Germany just as a low pressure front brings wet, warm weather from the southwest, the DWD said.

A resident shovels snow under an archway in Wernigerode, Germany, early Sunday morning, Feb. 7, 2021. Low Tristan has caused huge amounts of snow in the Harz mountains, like here in Wernigerode. (Matthias Beindpa via AP)

A resident shovels snow under an archway in Wernigerode, Germany, early Sunday morning, Feb. 7, 2021. Low Tristan has caused huge amounts of snow in the Harz mountains, like here in Wernigerode. (Matthias Beindpa via AP)

A Deutsche Bahn employee clears snow on a platform at the main station in Magdeburg, Germany, Sunday, Feb. 7, 2021. (Peter Gerckedpa via AP)

A Deutsche Bahn employee clears snow on a platform at the main station in Magdeburg, Germany, Sunday, Feb. 7, 2021. (Peter Gerckedpa via AP)