Is it possible to get the “Popular times” information through the Google Places API

人走茶凉 提交于 2020-05-09 21:15:11

问题


Is it possible to get the "Popular times" information through the Google Places API or any other API? I need this information to be displayed in my application for a particular place.


回答1:


I haven't managed to test it myself but this is what populartimes offers to do in Python:

import populartimes
populartimes.get("your-api-key", ["bar"], (48.132986, 11.566126), (48.142199, 11.580047))

More info on developer's github.




回答2:


This is one of the top feature requests in Google issue tracker (more than 500 stars):

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

Currently, the state is Assigned, however, no any ETA provided by Google. Please star it to get further updates.




回答3:


It's possible to scrape it, but it violates the Google ToS.




回答4:


yes its possible but as said it violates googles ToS , i have used npm package busy-hours but it's not working so i have modified their code and here is new npm package https://www.npmjs.com/package/google-busy-hours



来源:https://stackoverflow.com/questions/40456547/is-it-possible-to-get-the-popular-times-information-through-the-google-places

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!