In one embodiment, location data are inputted into a method or magnetic compass apparatus as a location code; a location code may comprise longitude and latitude data or other information which may be translated into useful information, such as magnetic declination angle, magnetic field strength, gravity field strength or heading computed by GPS; one or more types of location codes may be employed