Thursday, September 11, 2008

Google Android Reverse Geocoder Hack

I'm trying to publicize the Google Android Reverse Geocoder.
The problem is that the response comes in an unknown binary file format.
Only the Android.jar can decrypt it, and I can't decompile the JAR (cause it's not java bytecodes) to see how he does it.
Anyone has any brilliant idea on this matter?


The code follows:
Geocoder g = new Geocoder(this);
List
la = g.getFromLocation(51 , 0, 1); //somewhere in UK

then the Android makes a HTTP post to "http://www.google.com/loc/m/api" and from there comes the fiendish binary response.