如何在没有特定地址和PLACID的情况下获得Google评论?

发布于 2025-02-13 07:50:09 字数 933 浏览 3 评论 0 原文

目前,我们有一个流程,我们在注册时导入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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

提赋 2025-02-20 07:50:09

如果公司没有地址,则是SAB(服务区域业务)。

看起来像Google Places API在其位置API中排除了对SABS的支持:

API团队的位置已审查了此功能请求,并决定不包括服务区域业务会导致API响应。 Place API任务是使开发人员能够帮助用户找到相关的访问场所。由于服务区业务不是用户可以访问的地方,因此不属于API的位置。

更多详细信息:

如果要获得评论,我们需要使用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:

The Places API team has reviewed this feature request and decided against including Service Area Businesses results in API responses. Places API mission is to enable developers to help users find relevant places to visit. Since Service Area Businesses are not places users can visit, and therefore do not belong in the 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文