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我能在这个程序中更好地使用内存吗?   为什么我的Java while循环迭代了一半   java IntelliJ IDEA不在构建时复制资源   socket仅在Java TCP服务器输出上检查客户端断开连接   java游戏物理摩擦   java片段onClick调用方法   symja数学分析器中无法识别java Abs[x]   java在使用泛型时创建二进制搜索树类的实例?   java在外键约束表上的添加和删除   语法java表达式的含义,如果有条件   java创建内联对象并作为参数传递   是否有相当于Redis排序集(zset)的Java数据结构   java找不到适合的方法(无参数)   音频文件操作给定字节帧的音量Java   Eclipse4不以JavaWebStart启动   java如何使用org在JSON对象中获取嵌套的键元素。json?   java与Jackson的反序列化:“org.codehaus.Jackson.map.JsonMappingException:无法反序列化[projectname]的实例。”   字符串的Java正则表达式   spring集成上的java检测缺火指令