A smartphone application, enabling people in the middle of riots to find safety, has been shown off at the TEDGlobal event in Edinburgh.

The app has been developed by Salvatore Iaconesi, a newly created TED Fellow.

The software, not yet publicly released, takes data from a range of social networks and uses it to let people know what areas are least affected by trouble.

Users point their phones and a colour interface indicates dangerous areas.

Read more here: http://www.bbc.co.uk/news/technology-18601078