Code example for Address

Methods: getLocality, getSubAdminArea

0
	 * @param areaSearch 
	 * @return 
	 */ 
	private String decideSearchName(Address address, AreaSearch areaSearch) {
		String weatherArea;
		String county = address.getSubAdminArea();
 
		if (county != null) {
			weatherArea = areaSearch.search(county);
		} else { 
			String localityName = address.getLocality();
			weatherArea = areaSearch.search(localityName);
		} 
		return weatherArea;
	} 
 
	private String address2uri(Address address, String weatherAreaName) {
		HitokuchiUriSearch uriSearch = new HitokuchiUriSearch();
		String uri = uriSearch.search(address.getAdminArea(), weatherAreaName);
 
		Log.d(TENKO, "uri: " + uri);