... you can use it.What Is the Compass? Simply put, the compass built into your device obtains the direction in which the device is pointing. Ideally, if you’re running the PhoneGap Compass API, ... amount of information. For example, the compass in the iPhone 3GS (shown in Figure 7-1) offers a visual compass that tells you where north is, plus a readout in degrees and cardinal points (for example, ... about locations.USING COMPASS METHODS In this section, you learn how to use the main methods of the compass.getCurrentHeadingTo get the current heading, use compass.getCurrentHeading, as shown...