i'm testing my app on both the "iPhone emulator" and my "hd2 android phone" instead of the android emulator.
i'm passing in "boise, id" into both platforms and iPhone returns the proper lat & lng but on android it's returning null values for lat & lng?
any ideas? do i need to get an android google maps key or should this work on my android phone without issue?
1 Answer
Please see this ticket for details on how we are handling this: TIMOB-4880
In the meantime, you can do the forward geocoding yourself very easily, something like this:
xhr = Titanium.Network.createHTTPClient(); var query = 'Pittsburgh PA 15202'; // or whatever you want to forward geocode xhr.open('GET', 'http://maps.googleapis.com/maps/geo?output=json&q=' + query); xhr.onload = function() { var json = JSON.parse(this.responseText); Ti.API.info(json); }; xhr.send();
Your Answer
Think you can help? Login to answer this question!