google街景图像api的命令行工具和模块。

google-streetview的Python项目详细描述


谷歌街景

理查德•温
rrwen.dev@gmail.com

google街景图像api的命令行工具和模块。

pypi versionBuild StatusCoverage StatusStarsGitHub licenseDonarbox DonatePayPal DonateTwitter

注意:谷歌更改了StreetView API pricing,可能需要一个计费计划(2019年3月5日检查)。

安装

  1. 安装Python
  2. 通过pip
  3. 安装google_streetview
pip install google_streetview

有关最新的开发人员版本,请参见Developer Install

用法

有关控制台中的帮助:

google_streetview -h

确保设置了Google API developer key

google_streetview -s key="your_dev_key"

在街景中搜索经纬度46.414382,10.013988

google_streetview "46.414382,10.013988"

将图像保存到目录:

google_streetview --location="46.414382,10.013988" --save_downloads=downloads

通过旋转相机获得360度全景图heading给定90度视野fov

google_streetview --location="46.414382,10.013988" --fov=90 --heading=0;90;180;270

用作Python模块:

# Import google_streetview for the api moduleimportgoogle_streetview.api# Define parameters for street view apiparams=[{'size':'600x300',# max 640x640 pixels'location':'46.414382,10.013988','heading':'151.78','pitch':'-0.76','key':'your_dev_key'}]# Create a results objectresults=google_streetview.api.results(params)# Download images to directory 'downloads'results.download_links('downloads')

有关更多用法详细信息,请参见Documentation

贡献

  1. 有关问题和建议的报告可以使用issue submission
  2. 代码贡献通过pull requests
  3. 提交

有关详细信息,请参见CONTRIBUTING.rst

实施

google_streetview使用以下组件:

ComponentPurpose
Google Street View Image APIAPI for Google Street View images
google_streetview.apiModule for interfacing with Google Street View Image API using requests
requestsDownload and get URLs from Google Street View Image API
  
  Google Street View Image API     <-- API for Street View Images
               |
      google_streetview.api        <-- URL Request with query string
               |
            request                <-- Download URLs and images

有关详细信息,请参见NOTES.rst

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

推荐PyPI第三方库


热门话题
在Java中使用Kotlin值类   在Hadoop中表示大文本块作为键的java   java安卓工作室;布局设计视图;   字典Java确定字符串是否以映射中的键开头   JavaG1:混合gc和完全gc之间有什么区别?   java Camunda升级组织。阿帕奇。平民语言错误   java Scanner类具有NextLine无限循环   安卓 GCM Java服务器:发送带有重音字符的消息   java我正在构建一个兴趣计算应用程序,我的项目构建良好,有1个警告,但它不会在我的设备上打开   java在Tilera TileGX上构建OpenJDK 8   GUI中的java惰性初始化与急切初始化   java JodaTime四舍五入到最近的一刻钟   java如何限制菜单。SpringRoo中的jspx可以避免对其他用户的实体执行CRUD操作   java我应该将缓冲流链接到输入流,还是在将声音库作为嵌入式资源加载时使用URL类?