Skip to main content

Install

  1. Install Python

  2. 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.

Developer Notes

Developer Install

Install the latest developer version with pip from github:

pip install git+https://github.com/rrwen/google_streetview

Install from git cloned source:

  1. Ensure git is installed

  2. Clone into current path

  3. Install via pip

git clone https://github.com/rrwen/google_streetview
cd google_streetview
pip install . -I

Tests

  1. Clone into current path git clone https://github.com/rrwen/google_streetview

  2. Enter into folder cd google_streetview

  3. Ensure unittest is available

  4. Set your Google API developer key

  5. Run tests

  6. Reset config file to defaults

  7. Please note that this will use up 16 requests from your quota

pip install . -I
python -m google_streetview -s key=your_dev_key
python -m unittest
python -m google_streetview -d

Documentation Maintenance

  1. Ensure sphinx is installed pip install -U sphinx

  2. Update the documentation in docs/

pip install . -I
sphinx-build -b html docs/source docs

Upload to github

  1. Ensure git is installed

  2. Add all files and commit changes

  3. Push to github

git add .
git commit -a -m "Generic update"
git push

Upload to PyPi

  1. Ensure twine is installed pip install twine

  2. Ensure sphinx is installed pip install -U sphinx

  3. Run tests and check for OK status

  4. Delete dist directory

  5. Update the version google_streetview/__init__.py

  6. Update the documentation in docs/

  7. Create source distribution

  8. Upload to PyPi

pip install . -I
python -m google_streetview -s key=your_dev_key
python -m unittest
python -m google_streetview -d
sphinx-build -b html docs/source docs
python setup.py sdist
twine upload dist/*

Metadata

Release files for google-streetview 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for google-streetview 1.1.1
File Size Uploaded
google_streetview-1.1.1.tar.gz 7.3 kB Details

Release files / google_streetview-1.1.1.tar.gz

Download URL google_streetview-1.1.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
80c93eca1840a2ff33d696108dd916eb937427b2aa3adb13a4b03725602d9854
BLAKE2b-256 checksum
How to use checksums
4df2040cc29f5006d78ddc3a1c139737c304657557729df245a6f44e422557cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.2.9

1 release file

1.2.8

1 release file

1.2.7

1 release file

1.2.6

1 release file

1.2.5

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.9

1 release file

1.1.8

1 release file

1.1.7

1 release file

1.1.6

1 release file

1.1.5

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

This release

1.1.1 This release

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page