Sunday, February 1, 2009

Geocoding on Android

If you want to do geocoding, that is, if you want to get the latitude and longitude of an address in Android, do not use the Geocoder object. Yes, yes, I know that's what it's for and the docs give you very simple examples but they fail to mention one thing: it doesn't work!

I lost three frackin' days trying to figure out what I was doing wrong until I came across this thread. Turns out there's a bug in Android and forward geocoding doesn't work. Sure, it's been fixed in "cupcake" (the next version Android that is, as of this moment, pre-alpha) but you figured someone would have seen my posts of the past three days and said something about it.

I guess no one is geocoding on the Android, eh?

No comments:

Post a Comment