dear all,
I have tried
Titanium.geolocation.forwardGeocoder(addr,function(){ //code to add annotation });
with addr = "rio de janeiro, brazil" but it render me latlong of 'brazil in north america' is there any problem in titanium search technique.
or I am wrong in some way ?
thank you all.
2 Answers
Accepted Answer
why don't you use the google APIs ?
var url = "http://maps.googleapis.com/maps/geo?q=Rio+De+Janeiro,+BR&output=csv"; xhr = Titanium.Network.createHTTPClient(); xhr.open('GET',url); xhr.send(); xhr.onload = function() { var res = this.responseText; alert(res); };they work perfect to me, but beware of the query limit set by google.
Alberto gives a good workaround for now. You can track the progress of the forwardGeocoder issue in TIMOB-4880.
Your Answer
Think you can help? Login to answer this question!