Code example for GeomagneticField

Methods: getDeclination

0
	synchronized public boolean hasLocation() { 
		return currentLocation != null;
	} 
	 
	private float getDeclination() { 
		GeomagneticField field = new GeomagneticField(
				(float) currentLocation.getLatitude(),
				(float) currentLocation.getLongitude(),
				(float) currentLocation.getAltitude(),
				currentLocation.getTime());
		return field.getDeclination();
	} 
	 
	/** 
	 * Information about the difference between the current location and the target location 
	 * including accuracy information about the current location. 
	 *  
	 * @author tgnourse 
	 */ 
	public class Difference { 
Contextual code suggestions in your IDE  Get Codota for Java