Android Reverse geolocation Error in SDK 1.2

You must Login before you can answer or comment on any questions.

I get the error code "Wrapped java.lang.IllegalArgumentException: argument type mismatch" when using reversegeocoder on Android width titanium SDK 1.2.0 which I did not get in 1.1.2. When using 1.1.2, reversegeocoder just did not work for android but did work for iphone. Don Thorp graciously replied to me when I questioned about reveresgeocoding in 1.1.2 and stated that the issue was going to be resolved in 1.2. Perhaps I am doing something wrong. Here is the code I used:

Titanium.Geolocation.reverseGeocoder(entry_latitude,entry_longitude,function(evt)
{
    var places = evt.places;
    var entry_address = places[0].address;
    var entry_street = places[0].street;
    var entry_city = places[0].city;
    var entry_state = places[0].state;
    var entry_zipcode = places[0].zipcode;
    var entry_country = places[0].country;
 
    alert(entry_address);
 
});
Thanks in advance for any replies.

2 Answers

Accepted Answer

What are passing for entry_latitude, entry_longitude? I'm expecting doubles on the other side. Are you sending Strings?

The reverse test in geolocation.js is working.

Thanks Don for replying, I got it! I have to have an accuracy test to make sure that the GPS signal is valid, turns out the longitude and latitude were not valid numbers usable with reversegeo. You tipped me in the right direction. Thank you so much for all the work you have done on appcelerator! Great Work!

Your Answer

Think you can help? Login to answer this question!