-1
超過64個結果如何使用谷歌地圖API如何從谷歌地圖API
var restName="Pizza hut";
function initialize() {
var pyrmont = new google.maps.LatLng(19.125362 , 72.866467);//var pyrmont = new google.maps.LatLng(-33.8665433, 151.1956316);
map = new google.maps.Map(document.getElementById('map-canvas'), {
mapTypeId: google.maps.MapTypeId.ROADMAP,
center: pyrmont,
zoom: 0
});
var request = {
location: pyrmont,
radius: 50000,
types: ['restaurant'],
input: [restName]
};
placesList = document.getElementById('places');
var service = new google.maps.places.PlacesService(map);
service.textSearch(request, callback);
獲得超過64的結果,但它給了我只有64個使用分頁結果。 如何獲得所有國家的結果?
[Google地圖API,如何在整個城市中獲取服務(文本搜索)或視圖中整個地圖部分的可能重複](http://stackoverflow.com/questions/20683098/google-maps- API-如何對獲得服務文本搜索功能於整個城市,或者最全寶) – geocodezip