mirror of
				https://github.com/bspeice/itcs4180
				synced 2025-11-03 18:00:37 -05:00 
			
		
		
		
	Add a helper method to convert REST Locations to Android Locations
This commit is contained in:
		@ -38,4 +38,11 @@ public class Location {
 | 
			
		||||
	public void setLocationLat(double locationLat) {
 | 
			
		||||
		this.locationLat = locationLat;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public android.location.Location getAndroidLocation() {
 | 
			
		||||
		android.location.Location mLocation = new android.location.Location("NinerFinderServer");
 | 
			
		||||
		mLocation.setLatitude(getLocationLat());
 | 
			
		||||
		mLocation.setLongitude(getLocationLong());
 | 
			
		||||
		return mLocation;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user