Principles of Magnetic Locating