There’s recent research by Beakcheol Jang, Hyunjung Kim and Jong Wook Ki of Sangmyung University, S Korea on An Accurate Indoor Positioning Algorithm Using Sensors and Crowdsourced Landmarks.
The paper describes how to obtain more accurate heading direction and user coordinates by combining smartphone sensors and iBeacons as landmarks.