Code example for Geocoder

Methods: getFromLocationName

0
		} 
		return addresses;
	} 
 
	public static List<Address> getA(Context context, String rua) {
		Geocoder gc = new Geocoder(context, Locale.US);
		List<Address> addresses = null;
		try { 
			addresses = gc.getFromLocationName(rua, 10);
			return addresses;
		} catch (IOException e) {
			System.out.println("Deu erro o geo coder - " + e.getMessage());
		} 
		return addresses;
	} 
 
	public List<Address> getEndereco(Context context) {
		return getA(context, getLatitude(), getLongitude());
	} 
 
	public static Position getFromRua(Context context, String rua) {