A non-transitory tangible information-recording medium having encoded thereon software for implementing a method for localizing a person in surroundings equipped with fixed electrical appliances, the software including instructions that, when executed by an electronic computer, cause the computer to:
- request and receive a measure of an electromagnetic field radiated by one or more of the fixed electrical appliances by means of a magnetometer carried by the person to be localized, identify the fixed electrical appliance operating in proximity to the magnetometer by comparing the measured magnetic field with pre-recorded magnetic signatures, each pre-recorded magnetic signature being associated with a respective electrical appliance present in the surroundings, and localize the person at least in part on the basis of pre-recorded items of information about the localization, in the surroundings, of the fixed electrical appliance identified by its magnetic signature.