await new Promise((resolve,reject) => {
service.getPlacePredictions({
input: searchText,componentRestrictions: { country: country || 'IN' }
},(predictions) => {
pred = predictions;
console.log(predictions)
resolve(true);
});
});
试图搜索班加罗尔的酒店,但收到回复后,结果给整个印度的特定酒店。预先感谢