使用 Google 个地点获得 google+ 条评论 API
Get google+ reviews using Google Places API
我正在尝试调试一些非常奇怪的东西。
我想使用 Google 个地点 API 从这个 url 获取评论:
Henderson Nisan
我做了什么?
- 首先我通过这个 URL 搜索 Google Place ID
Place ID 的结果是:
ChIJoV7T0hjRyIAR24qv5IfRcWM
- 然后我用下一个 link 获取有关 Place 的所有信息:
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=MY_API_KEY
- 我收到了这些评论:http://prntscr.com/8q7bsd
问题是您在上面的打印屏幕上看到的评论与 Henderson Nisan
页面上的评论不对应
任何形式的帮助都是可以接受的。我想念什么?我使用了错误的 Place ID 吗?
谢谢
我已经完成了你所做的:
- 在 https://developers.google.com/places/place-id 搜索 Henderson Nissan,返回的 place-id 是
ChIJlfPkKh_RyIARWKYl-XpSyAQ
(不是 ChIJoV7T0hjRyIAR24qv5IfRcWM
)
使用此地点 ID 获取结果:https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJlfPkKh_RyIARWKYl-XpSyAQ&key=mykey
那里的评论与特定的 google+ 页面相关
不清楚您是如何获得 place-ID ChIJoV7T0hjRyIAR24qv5IfRcWM
,但很明显 detailsRequest 到 https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=MY_API_KEY uses a completely different place-ID: ChIJN1t_tDeuEmsRUsoyG83frY4
(for Google-Sydney )
我正在尝试调试一些非常奇怪的东西。
我想使用 Google 个地点 API 从这个 url 获取评论: Henderson Nisan
我做了什么?
- 首先我通过这个 URL 搜索 Google Place ID
Place ID 的结果是:
ChIJoV7T0hjRyIAR24qv5IfRcWM
- 然后我用下一个 link 获取有关 Place 的所有信息: https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=MY_API_KEY
- 我收到了这些评论:http://prntscr.com/8q7bsd
问题是您在上面的打印屏幕上看到的评论与 Henderson Nisan
页面上的评论不对应任何形式的帮助都是可以接受的。我想念什么?我使用了错误的 Place ID 吗?
谢谢
我已经完成了你所做的:
- 在 https://developers.google.com/places/place-id 搜索 Henderson Nissan,返回的 place-id 是
ChIJlfPkKh_RyIARWKYl-XpSyAQ
(不是ChIJoV7T0hjRyIAR24qv5IfRcWM
) 使用此地点 ID 获取结果:https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJlfPkKh_RyIARWKYl-XpSyAQ&key=mykey
那里的评论与特定的 google+ 页面相关
不清楚您是如何获得 place-ID ChIJoV7T0hjRyIAR24qv5IfRcWM
,但很明显 detailsRequest 到 https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=MY_API_KEY uses a completely different place-ID: ChIJN1t_tDeuEmsRUsoyG83frY4
(for Google-Sydney )