is there any problem with search technique in map in titanium appcelerator ? or limitations ?

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

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.

— asked 2 years ago by nitin soni
1 Comment
  • it will be helpful to solve , if u provide some more part of ur code.

    — commented 2 years ago by Gagan Tiwari

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.

Your Answer

Think you can help? Login to answer this question!