Get address using Geocoder in android
Posted
by
user264953
on Stack Overflow
See other posts from Stack Overflow
or by user264953
Published on 2011-01-13T18:50:07Z
Indexed on
2011/01/13
18:53 UTC
Read the original article
Hit count: 223
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
© Stack Overflow or respective owner