reverse Geocoder (getFromLocation(lat, lnt) not reliable

by sunny » Tue, 02 Nov 2010 13:36:19 GMT

Sponsored Links
 Dear all,
I find that geocoder apis particularly getFromLocation using Lat and Lnt is
not very reliable. I am noticing this behavior more after I upgraded to
android 2.2 on my Droid. I get an invalid argument exception for Latitude.
The funny thing it is not consistent in this behavior. It works some times
without any problem.

any tips?



reverse Geocoder (getFromLocation(lat, lnt) not reliable

by TreKing » Tue, 02 Nov 2010 23:04:11 GMT


Base on posts I've seen, I think people employ workarounds like wrapping the
call in a try catch and trying to get a valid value 3 or so times, waiting a
second or so between each attempt, to try to get a good value before giving
up and reporting an error.

TreKing <> ; - Chicago
transit tracking app for Android-powered devices


Sponsored Links

reverse Geocoder (getFromLocation(lat, lnt) not reliable

by sunny » Mon, 08 Nov 2010 07:03:32 GMT

 yes, it is in a try and catch and i run it within a while loop to retry if
it fails. I also log the exception caught when it fails. its just not
consistent. Is there a known issue with geocoder ?


reverse Geocoder (getFromLocation(lat, lnt) not reliable

by Bj枚rn Brala » Tue, 09 Nov 2010 02:54:34 GMT

 Im thinking of writing a class to use the new http geocoder of the v3 of the
API, i only read about problems online and it just won't work here... Sigh.

2010/11/8 sunny <>