有什么方法可以在 Google 个地点 API 处获得时间 "people typically spend" 的时间吗?

Is there any way to get the amount of time "people typically spend" at a place with Google Places API?

我注意到 Google 已经有这个功能大约一年了,但我没有在 Google 地方 API 上看到它。如果您查找附近的图书馆或健身房,Google 会显示人们通常在该地方花费多长时间(例如我附近的健身房,"People typically spend 45 min to 1 hr here.")是否有任何方法可以获取有关 Google 地点 API 或者还没有?

据我所知,Google Places API 目前没有提供该信息的任何功能。您可以考虑填写一个feature request到Google的代码。或者,我建议您简单地查找地点(即在您的应用程序中)并手动解析典型的访问持续时间。根据您要使用的方法,此解决方案有很多缺点(例如页面布局可能会更改并且您的应用程序将停止工作,需要立即更新),但这是一个选项。

你是对的,这些信息还不能通过 Places API 获得。我可以看到人们已经在 Google 问题跟踪器中为此提交了功能请求:

https://issuetracker.google.com/issues/35830308

我建议盯着功能请求添加您的投票并订阅进一步的通知。希望有一天 Google 会在 API 中实现此功能。