Patent attributes
There is provided a solution comprising detecting that a positioning device is within a predetermined control area associated with a building, acquiring a first sequence of magnetic field measurements carried out by the positioning device, wherein the first sequence represents at least one of the magnitude and the direction of Earth's magnetic field; determining that an operational environment of the positioning de-vice has changed between an indoor environment and an outdoor environment when a at least one predetermined criterion with respect to the first sequence is met; and causing actuation of a predetermined software function in or with respect to the positioning device when the operational environment of the positioning device has changed.