Mobile terminals, methods, and program products for generating a magnetic
heading. A geographic position of the mobile terminal is determined. A
magnetic field at the mobile terminal is sensed. A magnetic inclination
and/or a magnetic declination of the magnetic field is determined based
on the determined geographic position. A magnetic heading is determined
for the mobile terminal based on the sensed magnetic field and based on
the determined magnetic inclination and/or magnetic declination.