Get address using Geocoder in android
- by user264953
Hi,
I tried to get the address of a particular location by giving static geocordinates. I was not able to fetch the address. Can someone please help. I just need to check whether this function works for me.
Here is my snippet.
Geocoder geocoder = new Geocoder(AddressSimulator.this, Locale.getDefault());
List<Address> addresses = geocoder.getFromLocation(1.352566007, 103.78921587, 1);
System.out.println("Addresses size"+addresses.size());
Address size is obtained as zero. I tried with few other geocordinates also, but address size is always returned as 0. Experts, kindly help me resolve this.
Looking forward for your valuable help/suggestions,
Best Regards,
Rony