A method of obtaining information about the position and/or orientation of a magnetic component relatively to a magnetometric detector, the magnetic component and the magnetometric detector being moveable independently from each other relatively to a static secondary magnetic field, the method comprising the steps of: measuring in the presence of the combination of both the magnetic field of the magnetic component and the static secondary magnetic field essentially simultaneously the strength and/or orientation of a magnetic field at at least a first position and a second position spatially associated with the magnetometric detector, the second position being distanced from the first position; and combining the results of the measurements to computationally eliminate the effect of the secondary magnetic field and derive the information about the position and/or orientation of the magnetic component.