Ubiquitous smartphone based localization with door crossing detection. (October 2018)