@robryk you would need a map of the magnetic fields, a high accurate sensor, and you'd not even approach GPS level accuracy.. but its doable in theory yea.