简体   繁体   English

使用Google Places API获取google +评论

[英]Get google+ reviews using Google Places API

I'm trying to debug something very weird. 我正在尝试调试很奇怪的东西。

I want to get reviews using Google Places API from this url: Henderson Nisan 我想通过以下网址使用Google Places API获得评论: Henderson Nisan

What I did? 我做了什么?

Problem is that those reviews which you can see on above printscreen are not corresponding to the reviews that are on the page of Henderson Nisan 问题是您在上述打印屏幕上看到的那些评论与亨德森·尼桑页面上的评论不符

Any kind of help will be acceptable. 任何形式的帮助都是可以接受的。 What I miss? 我想念什么? Did I use wrong Place ID? 我是否使用了错误的位置ID?

Thanks 谢谢

I've done what you've done: 我已经完成了您的工作:

  1. searched for Henderson Nissan in https://developers.google.com/places/place-id , the returned place-id was ChIJlfPkKh_RyIARWKYl-XpSyAQ (not ChIJoV7T0hjRyIAR24qv5IfRcWM ) https://developers.google.com/places/place-id中搜索Henderson Nissan,返回的位置ID为ChIJlfPkKh_RyIARWKYl-XpSyAQ (不是ChIJoV7T0hjRyIAR24qv5IfRcWM
  2. used this place-id to fetch results: https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJlfPkKh_RyIARWKYl-XpSyAQ&key=mykey 使用此位置ID来获取结果: https : //maps.googleapis.com/maps/api/place/details/json?placeid= ChIJlfPkKh_RyIARWKYl-XpSyAQ &key=mykey

  3. the reviews there are related to the particular google+ page 那里的评论与特定的Google+信息页相关

it's not clear how you got the place-ID ChIJoV7T0hjRyIAR24qv5IfRcWM , but it's clear that the detailsRequest to 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 ) 目前尚不清楚您是如何获得ChIJoV7T0hjRyIAR24qv5IfRcWM -ID ChIJoV7T0hjRyIAR24qv5IfRcWM ,但很显然,对https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=MY_API的detailsRequest完全不同。 ID: ChIJN1t_tDeuEmsRUsoyG83frY4 (适用于ChIJN1t_tDeuEmsRUsoyG83frY4 悉尼

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM