The geomagnetic field can be approximated by envisioning a bar magnet extending through the earth.

U.S. Department of State

The Lessons of 1989: Freedom and Our Future