Hi All,
  I am having a real hard time with the geocoder API of android sdk
1.5rc2. In my app I am trying to get the addresses corresponding to a
location name by using the getFromLocationName method of the Geocoder
class. But the problem is whenever I call this method it returns a
null value. I have also pushed a geodb file containing some fake
addresses at 'data/misc/location' directory in the phone.

The format of the data in the geodb file is as follows :

address 1
latitude "38.898763"
longitude "-77.036655"
line 0 "1600 Pennsylvania Ave NW"
line 1 "Washington, DC 20006"
locality "Washington"
region "DC"
postalCode "20006"
countryCode "US"
countryName "United States"


and following is the code snippet :
Geocoder geocoder = new Geocoder(this, Locale.getDefault());
List<Address> addresses=geocoder.getFromLocationName("1600
Pennsylvania", 10);

Please help.....

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to