Code example for Address

Methods: getSubLocality

0
	} 
 
	public static String getNeighborhood() {
		if (currentAddress == null)
			return null; 
		return currentAddress.getSubLocality();
	} 
 
	public static double getLongitude() { 
		if (GPSService.isReliable() == true) { 
			return GPSService.getLongitude(); 
		} else if (NetworkService.isReliable() == true) { 
			return NetworkService.getLongitude(); 
		} 
		return 0; 
	} 
 
	public static double getLatitude() { 
		if (GPSService.isReliable() == true) { 
			return GPSService.getLatitude(); 
		} else if (NetworkService.isReliable() == true) {