Skip to main content

streetlevel

streetlevel is a library for downloading panoramas and metadata from street-level imagery services such as Google Street View, Apple Look Around, and several others. It provides a simple abstraction over the internal APIs of the supported services – this means that no API keys are required, but the library may break unexpectedly.

(Nearly) all functions are available as either a sync function using requests or an async function using aiohttp, requiring a ClientSession.

Installation

streetlevel is available on PyPI:

pip install streetlevel

macOS users may need to install additional dependencies:

brew install gettext
brew install inih

Example

Downloading the closest Google Street View panorama to a specific location, sync:

from streetlevel import streetview

pano = streetview.find_panorama(46.883958, 12.169002)
streetview.download_panorama(pano, f"{pano.id}.jpg")

Or async:

from streetlevel import streetview
from aiohttp import ClientSession

async with ClientSession() as session:
    pano = await streetview.find_panorama_async(46.883958, 12.169002, session)
    await streetview.download_panorama_async(pano, f"{pano.id}.jpg", session)

Documentation

Documentation is available at streetlevel.readthedocs.io.

Functionality overview

Services covering multiple countries are on the left; services covering one specific country are on the right.

✔ implemented / available; 🟡 partially implemented; ❌ not implemented; ⚫ not available / not applicable

Google
Street View
Apple
Look Around
Yandex
Panorama
Bing
Streetside
🇨🇳 Baidu
Panorama
🇰🇷 Kakao
Road View
🇰🇷 Naver
Street View
🇨🇿 Mapy.cz
Panorama
🇮🇸 Já
360

Finding panoramas
How panoramas can be retrieved through the API.
Find panoramas around a point ✔1 ⚫ ✔1 ✔ ✔1 ✔ ✔1 ✔1 ✔1
Find panoramas by map tile or bbox ✔2 ✔2 ⚫ ✔3 ⚫ ⚫ ⚫ ⚫ ⚫
Get specific panorama by ID ✔ ⚫ ✔ ✔ ✔ ✔ ✔ ✔ ✔

Imagery
The type of imagery returned by the service.
Panoramas ✔ ✔4 ✔ ✔ ✔ ✔ ✔ ✔ ✔
Depth ✔5 ❌ ⚫ ⚫ ❌?10 ✔ ✔14 ⚫
⚫
Image projection Equirectangular ??? Equirectangular Cubemap Equirectangular Equirectangular Equirectangular/Cubemap13 Equirectangular Cubemap
Image format JPEG HEIC JPEG JPEG JPEG JPEG JPEG JPEG JPEG

Available metadata
Metadata returned by the API of the service alongside ID and location.
Capture date ✔6 ✔ ✔ ✔ ✔ ✔ ✔ ✔ ✔9
Heading, pitch, roll ✔ ✔ ✔7 ✔ ✔ ✔7 ✔11 ✔ ✔7
Elevation ✔ ✔ ⚫ ✔ ✔ ⚫ ⚫12 ✔ ⚫
Nearby / linked panoramas ✔ ⚫ ✔ ✔8 ✔ ✔ ✔ ✔ ✔
Historical panoramas ✔ ⚫ ✔ ⚫ ✔ ✔ ✔ ✔ ⚫
Address ✔ ⚫ ✔ ⚫ ⚫ ✔ ✔ ⚫ ✔
PoIs ✔ ❌ ✔ ⚫ ⚫ ❌ ❌ ⚫ ⚫
Creator ✔ ⚫ ✔ ⚫ ✔ ⚫ ⚫ ✔ ⚫

1: Returns closest only
2: Tile, z=17
3: Bounding box
4: Unstitched
5: Appears to be a synthetic depth map created from elevation data and building footprints
6: Month and year only for official coverage, full date for inofficial coverage
7: Only heading; pitch/roll do not appear to be available
8: Previous and next image in sequence
9: Month and year only
10: There is a has_depth field in the raw metadata, but I've yet to find a panorama that actually has depth
11: Pitch/roll are only available for the new 3D imagery
12: Camera altitude is available, however
13: 3D imagery panos have both an equirectangular and a cubemap version; everything else is only available as cubemap
14: Non-3D imagery appears to use a synthetic depthmap created from elevation data and building footprints

Metadata

Release files for streetlevel 0.13.0

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

Source distribution (sdist)

Source distribution for streetlevel 0.13.0
File Size Uploaded Provenance Actions
streetlevel-0.13.0.tar.gz 126.5 kB Without provenance Details for streetlevel-0.13.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for streetlevel 0.13.0
File Interpreter ABI Platform Actions
streetlevel-0.13.0-py3-none-any.whl Python 3 none any Details for streetlevel-0.13.0-py3-none-any.whl

Total release size: 222.2 kB

Release files / streetlevel-0.13.0.tar.gz

Download URL streetlevel-0.13.0.tar.gz
Size 126.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2e75fb2cca8c2a1800775e36510a92049e2f45c2cfe97c1271c5aed5ab4cd6b0
BLAKE2b-256 checksum
How to use checksums
737e545e4a0b8eed25e368bb9721138b2cb568cecfed7cf1bcd8866a048401d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / streetlevel-0.13.0-py3-none-any.whl

Download URL streetlevel-0.13.0-py3-none-any.whl
Size 95.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
624c912a8522a47880cff2b5208d4ab4bd377810c86ca4d4850b57ec23a1192d
BLAKE2b-256 checksum
How to use checksums
4771c3d38053cdea7055179b5747306a216621f32ed3d77937ddc2e620676388
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for streetlevel 0.13.0

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.

Release history Release notifications | RSS feed

This release

0.13.0 This release

2 release files No provenance

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