Google Maps Details API不返回字段 [英] Google maps details API does not return fields
问题描述
我正在尝试从 google maps place details api中检索信息
我叫这个网址:
地点ID来自地方搜索api,它是 可以正确显示几何,但其他字段不显示. 根据文档,它们都是有效的查询参数并且参数应以逗号分隔.
文档中有三种类型的字段,所有 如何获取响应中的所有字段参数? 商家(在Places API中)将在其条目中包含商家名称以及地址.地址的条目将不会. PlaceId: 不是公司: 如果我使用 Place ID Finder 我得到一个 您要查找的字段. I am trying to retrieve information from the google maps place detail api. I am calling this url: The place id comes from the Place Search api, it is the id of this place. So I am requesting the following fields in the url: geometry, price level, rating, review, user_ratings_total, and my response is the following: Geometry is showing up all right, but the other fields are not. According to the documentation, they are all valid query parameters and the parameters should be separated by a comma.
There are three types of fields in the documentation, all What do I do to get all the field parameters in the response? A business (in the Places API) will have the business name in its entry, as well as the address. The entries for the addresses won't. PlaceId: Not the business: If I use the Place ID Finder I get a PlaceId of Which has the fields you are looking for. 这篇关于Google Maps Details API不返回字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!Basic
类型的字段都有效,而其他两个Contact
和Atmosphere
无效.ChIJgQlGoRzcQUcRP8UPrtI8hcc
地址是:Budapest, Királyfürdő u. 4, 1027 Hungary
BlackBelt Technology Kft. at the address: Budapest, Királyfürdő u. 4, 1027 Hungary
ChIJUxteJqfeQUcRAXhmxC6DVn0
的PlaceId,{
"html_attributions" : [],
"result" : {
"geometry" : {
"location" : {
"lat" : 47.510746,
"lng" : 19.036858
},
"viewport" : {
"northeast" : {
"lat" : 47.51209583029149,
"lng" : 19.0382836802915
},
"southwest" : {
"lat" : 47.50939786970849,
"lng" : 19.0355857197085
}
}
}
},
"status" : "OK"
}
Basic
type fields are working, the other two Contact
and Atmosphere
are not.ChIJgQlGoRzcQUcRP8UPrtI8hcc
Is the address: Budapest, Királyfürdő u. 4, 1027 Hungary
BlackBelt Technology Kft. at the address: Budapest, Királyfürdő u. 4, 1027 Hungary
ChIJUxteJqfeQUcRAXhmxC6DVn0
,