Refuge is being offered to people stranded near Munich through social media.
Several people are feared dead and many are thought to have been injured in a gun attack near the Olympia shopping centre, prompting the closure of transport links across the city. Munich Police have urged people to avoid public places.
READ MORE: Munich shopping centre attack: What we know so far as police say shooting is 'suspected terrorism'
In response, hundreds of people have taken to Twitter using the hashtag #OffeneTur - or #OpenDoor - inviting people to stay if they are unable to get home.
Facebook's Safety Check feature has also been activated so that people can let friends and family know that they are safe.
It was most recently used in the wake of the Nice attack earlier in this month.
People also opened their homes under the hashtag #PorteOuverte during the Nice attack and Paris attacks in November to help people find safety.
Munich's main railway station has been evacuated and rail travel and local public transport in the area has been stopped, according to Bavarian radio station Antenne Bayern.
Nightclubs in Munich will be closed on Friday night, a local television network reported.
READ MORE: Munich shopping centre attack: What we know so far as police say shooting is 'suspected terrorism'
Drivers have been urged to clear the motorways surrounding Munich, the newspaper Abendzeitung said.
Scotland's First Minister Nicola Sturgeon Tweeted that she was horrified by the reports of the shooting, and that her thoughts were with the people and emergency services on the scene.
US president Barack Obama said: "Our hearts go out to those who may have been injured. It's still an active situation and Germany is one of our closest allies so we are going to pledge all the support that they may need in dealing with these circumstances."
Horrific reports from #Munich. Thinking of everyone there and also the emergency services at the scene.
— Nicola Sturgeon (@NicolaSturgeon) 22 July 2016
He said it was a "good reminder" that people's "way of life, our freedoms, our ability to go about our business every day" was dependent on law enforcement.
READ MORE: Munich shopping centre attack: What we know so far as police say shooting is 'suspected terrorism'
A British Foreign Office spokesman said: "We are urgently seeking further information following the ongoing incident in Munich. We are touch with the relevant authorities."
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules hereComments are closed on this article