Code example for Location

Methods: getAccuracygetAltitudegetBearinggetLatitudegetLongitudegetSpeedgetTime

0
		if (error != null) {
			this.error = GENERAL_ERROR;
		}  
		 
		if (location != null) {
			setSpeed(location.getSpeed());
			setHeading(location.getBearing());
			setTime(location.getTime() / SECONDS_IN_MILLISECOND);
			setLongitude(location.getLongitude());
			setLatitude(location.getLatitude());
			setAltitude((float)location.getAltitude());
			setVerticalAccuracy(location.getAccuracy());
			setHorizontalAccuracy(location.getAccuracy());	
		} 
	} 
	 
	private static float returnFloat(float aFloat) {
		if (!Float.isNaN(aFloat)) {
			return aFloat;
		} else { 
			return 0;