google_streetview
Richard Wen
rrwen.dev@gmail.com
A command line tool and module for Google Street View Image API.
Note: Google changed StreetView API pricing and a billing plan may be required (checked March 5, 2019).
Install
- Install Python
- Install google_streetview via
pip
pip install google_streetview
For the latest developer version, see Developer Install.
Usage
For help in the console:
google_streetview -h
Ensure that a Google API developer key is set:
google_streetview -s key="your_dev_key"
Search street view for latitude and longitude 46.414382,10.013988:
google_streetview "46.414382,10.013988"
Save images to a directory:
google_streetview --location="46.414382,10.013988" --save_downloads=downloads
Obtain a 360 panorama by rotating the camera heading given a 90 degree field of vision fov::
google_streetview --location="46.414382,10.013988" --fov=90 --heading=0;90;180;270
Use as a Python module:
# Import google_streetview for the api module
import google_streetview.api
# Define parameters for street view api
params = [{
'size': '600x300', # max 640x640 pixels
'location': '46.414382,10.013988',
'heading': '151.78',
'pitch': '-0.76',
'key': 'your_dev_key'
}]
# Create a results object
results = google_streetview.api.results(params)
# Download images to directory 'downloads'
results.download_links('downloads')
For more usage details, see the Documentation.
Contributions
- Reports for issues and suggestions can be made using the issue submission
- Code contributions are submitted via pull requests
See CONTRIBUTING.rst for more details.
Implementation
The package google_streetview uses the following components:
| Component | Purpose |
|---|---|
| Google Street View Image API | API for Google Street View images |
| google_streetview.api | Module for interfacing with Google Street View Image API using requests |
| requests | Download 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
For more information, see NOTES.rst.
Metadata
Release files for google-streetview 1.2.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| google_streetview-1.2.9.tar.gz | 7.5 kB | Without provenance | Details for google_streetview-1.2.9.tar.gz |
Release files / google_streetview-1.2.9.tar.gz
| Download URL | google_streetview-1.2.9.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f124982c4e16a7e15688e875928a227368739d12a07d2db2d2fdd0767edcc38d
|
|
BLAKE2b-256 checksum How to use checksums |
0433be168a62a973e8dd3f00a83b2481f4c5602bb8339cbe81cf70a437b04ade
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5
|
Security for google-streetview 1.2.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.