mirror of
				https://github.com/bspeice/itcs4180
				synced 2025-11-04 02:10:32 -05:00 
			
		
		
		
	Add a fancy wrapper method to handle the nasty namespacing
This commit is contained in:
		@ -39,10 +39,14 @@ public class Location {
 | 
				
			|||||||
		this.locationLat = locationLat;
 | 
							this.locationLat = locationLat;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	public android.location.Location getAndroidLocation() {
 | 
						private android.location.Location getAndroidLocation() {
 | 
				
			||||||
		android.location.Location mLocation = new android.location.Location("NinerFinderServer");
 | 
							android.location.Location mLocation = new android.location.Location("NinerFinderServer");
 | 
				
			||||||
		mLocation.setLatitude(getLocationLat());
 | 
							mLocation.setLatitude(getLocationLat());
 | 
				
			||||||
		mLocation.setLongitude(getLocationLong());
 | 
							mLocation.setLongitude(getLocationLong());
 | 
				
			||||||
		return mLocation;
 | 
							return mLocation;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						public float bearingTo(Location target) {
 | 
				
			||||||
 | 
							return getAndroidLocation().bearingTo(target.getAndroidLocation());
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user