目前,我们有一个流程,我们在注册时导入Google评论,然后每天更新它们。我们获得了用户的公司名称和位置地址:
$requestUri = 'https://maps.googleapis.com/maps/api/place/autocomplete/json?key={key}&input=A+Closer+Look+Residential+Inspections%2C+LLC%2C+9230+Fowler+Ln%2C+Lanham%2C+MD+20706%2C+United+States';
从AutoComplete中,我们可以通过PlaceID获取PlaceID并搜索评论:
$requestUri = 'https://maps.googleapis.com/maps/api/place/details/json?key={key}&place_id=ChIJmyUG8bfBt4kRqqn8jPZYhDo';
这很好。
问题
我们有一个没有位置地址的新用户,因此我们无法获得PlaceID。用户在Google上进行了评论,如果要在搜索栏中搜索它们。
公司名称是:“ Westside Home Inspections Inc.”。 Google地图显示它们在整个洛杉矶(不是地址,而是区域)。然后我尝试在这里找到一个斑点: https:// 。但是没有运气。
问题:
这只能通过公司名称获得Google评论吗?
Right now, we have a flow, where we import Google reviews on sign up and then update them daily. We get the user's company name and location address:
$requestUri = 'https://maps.googleapis.com/maps/api/place/autocomplete/json?key={key}&input=A+Closer+Look+Residential+Inspections%2C+LLC%2C+9230+Fowler+Ln%2C+Lanham%2C+MD+20706%2C+United+States';
From autocomplete we can get placeId and search for reviews by placeId:
$requestUri = 'https://maps.googleapis.com/maps/api/place/details/json?key={key}&place_id=ChIJmyUG8bfBt4kRqqn8jPZYhDo';
And this worked fine.
Issue
We have a new user which dont have location address, so we can't get placeId. The user has reviews on Google if to search for them in the search bar.
Company name is: "Westside Home Inspections Inc.". Google Map shows that they works in whole LA (not address, but area). Then i tried to get a placeId here: https://developers.google.com/maps/documentation/places/web-service/place-id . But with no luck.
Question:
Is this possible to get Google reviews only by company name?
发布评论
评论(1)
如果公司没有地址,则是SAB(服务区域业务)。
看起来像Google Places API在其位置API中排除了对SABS的支持:
更多详细信息:
如果要获得评论,我们需要使用PlaceID,那么就无法获得评论。
答案:不,由于Google删除了对Google Places API的SAB的支持,因此无法获得Google评论。
ps :我认为,我们有可能在“ Google Business Profile”中获得SAB的评论,但这不是我们的案例,而是另一回事。
感谢 @mrupsidown 在评论中提供有用的链接。
If company has no address, then it's SAB (service area business).
And looks like Google Places API excluded support for SABs from their Places Api:
More details here: https://issuetracker.google.com/issues/35828187#comment20
And if to get reviews we need to use placeId, then its not possible to get reviews.
Answer: No, its not possible to get Google reviews for SAB, because Google removed support of SAB in Google Places Api.
PS: I think, it's possible that we can get reviews for SAB in the "Google Business Profile", but this is not our case and is a different story.
Thanks to @MrUpsidown for helpful link in comments.