总结指定区域内地点的Google地图属性

places-summarized的Python项目详细描述


汇总的地点

Build StatusLicense: MIT

Places summared是googlemaps的placesapi的包装器,它总结了 指定坐标附近位置的属性。在

安装

使用pip汇总的安装位置

$ pip install places-summarized

要求

  • 谷歌地图API密钥。在
  • Python3

使用

本例使用googlemapsapi键。在

importpprintfromplaces_summarized.clientimportClientpp=pprint.PrettyPrinter(indent=4)client=Client(key='your-key')# Google Sydney officessummary=client.places_summary(location=(-33.8670522,151.1957362),radius=1000)pp.pprint(summary.result())# Print the ratings of the locations of type "point_of_interest."# You can find the full list of types# at: https://developers.google.com/places/web-service/supported_typesprint(summary.ratings_by_type('point_of_interest'))# Print the average price level of all the placesprint(summary.average_price_level())

或者,您可以不使用密钥,使用TestClient来测试它。在

^{pr2}$

文件

去做。。。:/也许你想帮忙?在

致谢

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Selenium中弹出的java句柄窗口   java将格式化消息从任何片段传递到活动   java如何从int类型的方法返回多个整数   servlets数据不会使用java类和bean插入数据库   java如何修改Solr给出的搜索结果页面?   java如何在wildfly中重定向应用程序路径?   java使用Apache异步HTTP客户端从InputStream构造多部分请求   java解析来自REST的压缩输入流   java上载文件失败,原因是Vaadin Spring PlupLocaddon   使用需要CSRF令牌的旧端点的javascript   java如何在viewpager应用程序中将图像设置为墙纸?   java Axis2与SharePoint 2013(ADFS/FedAuth cookie)   java H2选择:意外的类型39映射   Docker Composition中拒绝java Spring应用程序连接   使用Java的ibm mq ibm mq获取LGETTIME   java循环逻辑中的漏洞   javaspringcom。mongodb。util。JSONParseException   方法调用“振动”可能会产生java。更新到Android Studio 3后出现lang.NullPointerException警告   datetime如何将日历的时间与java进行比较。sql。时间物体?