我知道他们只是弃用id和引用,我得到有效的placeid与我的初始搜索-但由于某种原因,当我去搜索这样的细节:
function(place_id){
var request = {
placeId: place_id
}
this.service.getDetails(request, function(data){
//Da callback
});
}
我得到一个错误,要求使用已弃用的字段'reference':
Uncaught Error: Missing parameter. You must specify reference.
谢谢你的帮助!
这取决于使用的api版本。
当前发布版本是3.16,你必须使用reference
在那里
从3.17开始,你可以(也应该)使用placeId