2010-05-11 65 views

回答

0

當然可以。這個Google示例展示了他們的一些技巧。
http://www.google.com/uds/samples/random/lead.html

或者,使用摘自我的代碼

var ls = new google.search.LocalSearch(); 
ls.setCenterPoint('New York'); 
ls.setSearchCompleteCallback(this, processResults, [ls]); 
ls.execute('Barnes & Noble'); 

和回調

processResults: function(searcher) { 
    if (searcher.results && searcher.results.length > 0) { 
     for (var i = 0; i < searcher.results.length; i++) { 
      var result = searcher.results[i]; 
      alert(result.lat + ' ' + result.lng); 
     } 
    } 
} 

一般信息,我相信你已經看到了這一點:
http://code.google.com/apis/ajaxsearch/documentation/

Braveard在他的問題中還提供了工作示例
Disable Highlighting in Google API WebSearch Result Title

+0

感謝您的幫助:)我解決了這個使用另一種方法,前一天已經:D – cheesebunz 2010-07-02 06:26:12