Hi, I have an application where I try to get address of a location based on the latitude,longitude coordinates.When I try to print all the address of particular coordinates , I am getting only single address. IS there any way to get the list of all addresses for the coordinates supplied . My code snippet is as below:
Where locationLatitude,locationLongitude are of type String which are converted to doubles
*List addresses = geoCoder.getFromLocation(Double .parseDouble(locationLatitude), Double.parseDouble(locationLongitude), 1); StringBuffer addressAsString = new StringBuffer(""); if(!addresses.isEmpty()){ for (int i = 0; i < addresses.get(0).getMaxAddressLineIndex(); i++) addressAsString.append(addresses.get(0).getAddressLine(i) + "\n"); return addressAsString.toString() ;*
I will be waiting for any reply. Thanks in Advance.