Skip to main content

mirrorworld

PyPI Docs Tests

mirrorworld fetches data about a place from many sources with one consistent API: street-level imagery (Google Street View, Apple Look Around, Mapillary, KartaView, Panoramax and more), detected street assets, aerial and satellite imagery, elevation models, LiDAR point clouds, any OGC/ArcGIS map service and OpenStreetMap features. Everything is downloaded on demand for a point or bounding box; nothing is hosted by this project.

It is a fork of streetlevel by sk-zk, whose street-level providers use the services' internal APIs: no API keys are required for them, but they 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

pip install mirrorworld
pip install "mirrorworld[all]"   # plus GeoTIFF (rasterio) and LiDAR (laspy) support

The extras can also be installed separately: mirrorworld[raster] for satellite, elevation and GeoTIFF output, mirrorworld[lidar] for point clouds.

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 mirrorworld import streetview

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

Or async:

from mirrorworld 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)

More modalities for a place

On top of streetlevel's providers, mirrorworld adds sources that researchers commonly need next to street-level panoramas. Everything is fetched on demand for a point or a bounding box (WGS84, lat/lon order) and nothing is hosted by us; results carry their georeferencing and source metadata. Sync and async variants are provided wherever the work is network-bound.

Modality Module Sources Coverage Key
Open street-level imagery mapillary, kartaview, panoramax Mapillary, KartaView, Panoramax (all CC BY-SA) worldwide, crowd-sourced: Mapillary dense in cities (incl. UK); KartaView and Panoramax patchy (Panoramax strongest in France) Mapillary: free token
Detected street assets mapillary (find_map_features, get_detections, get_point_cloud) Mapillary map features (poles, manholes, junction boxes, signs, ...), segmentations, SfM point clouds wherever Mapillary has imagery free token
Aerial imagery (web tiles) aerial.bing, aerial.google, aerial.esri, aerial.usgs Bing, Google, Esri World Imagery, USGS worldwide (USGS: US only) none
Dated aerial imagery aerial.wayback Esri World Imagery Wayback, 2014 onwards worldwide none
National orthophotos aerial.pdok Netherlands RGB + colour-infrared, 8 cm Netherlands none
Satellite satellite.sentinel2, sentinel1, landsat, naip, worldcover, generic satellite.stac Earth Search, Microsoft Planetary Computer worldwide (NAIP: US only) none
Elevation elevation.ea, elevation.wales, elevation.ahn, elevation.usgs3dep, elevation.copernicus Environment Agency LiDAR (1 m), Welsh Government LiDAR (1 m), AHN (0.5 m), USGS 3DEP, Copernicus GLO-30 England, Wales, Netherlands, US, worldwide (30 m) none
LiDAR point clouds lidar.usgs3dep, generic lidar.ept USGS 3DEP on AWS US (any EPT dataset elsewhere) none
Any map service services.wms, wmts, wcs, arcgis, raster.read_cog any OGC / ArcGIS server or cloud-optimized GeoTIFF depends on the service depends
Vector map data vector.osm OpenStreetMap via Overpass (ODbL) worldwide; tag completeness varies (UK street cabinets and poles are sparsely mapped) none
from mirrorworld import mapillary, panoramax
from mirrorworld.aerial import wayback, pdok
from mirrorworld.satellite import sentinel2
from mirrorworld.elevation import ahn
from mirrorworld.lidar import usgs3dep
from mirrorworld.vector import osm

poles = mapillary.find_map_features(47.68, -122.30, radius=150, values=["object--support--utility-pole"])
pics = panoramax.find_panoramas(51.5088, -0.127, radius=30)
versions = wayback.find_versions(47.6062, -122.3321)            # dated imagery versions at a place
pdok.download_raster(52.3736, 4.8915, 52.3728, 4.8932, "dam_cir.png", infrared=True)
s2 = sentinel2.get_raster(47.615, -122.345, 47.600, -122.325, bands=("red", "nir"))
heights = ahn.get_ndsm(52.3736, 4.8915, 52.3728, 4.8932)         # object heights above ground
las = usgs3dep.get_points(47.6068, -122.3340, 47.6058, -122.3325, resolution=1.0)
cabinets = osm.find_features(47.61, -122.34, 47.60, -122.33, {"man_made": "street_cabinet"})

Optional dependencies: pip install "mirrorworld[raster]" (rasterio: GeoTIFF/COG for satellite, elevation, WCS, ArcGIS) and pip install "mirrorworld[lidar]" (laspy with LAZ support). Mapillary reads its token from access_token= or MAPILLARY_ACCESS_TOKEN.

Each source keeps its own terms (listed in each module's docstring and the docs). Bing and Google tiles use unofficial endpoints; check their terms before relying on them.

Documentation

Documentation: https://alienpenguin10.github.io/Mirrorworld/ — guides, recipes, a coverage table and the full API reference. The original streetlevel documentation is 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 mirrorworld 0.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 mirrorworld 0.1.1
File Size Uploaded Provenance Actions
mirrorworld-0.1.1.tar.gz 230.9 kB With provenance Details for mirrorworld-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 434.7 kB

Release files / mirrorworld-0.1.1.tar.gz

Download URL mirrorworld-0.1.1.tar.gz
Size 230.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3cd3f8aad48dd47385b64aa2c81dc29fb8eb2b973d72f34809382439cc1ccb21
BLAKE2b-256 checksum
How to use checksums
3c2c3f70493e3ecec7c06ea3dcd9150a87cba9bec4bc5eba62e8f80b0d1e3328
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / mirrorworld-0.1.1-py3-none-any.whl

Download URL mirrorworld-0.1.1-py3-none-any.whl
Size 203.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
375588f2414cfedcd02bfb3ef23b02abfd5cdc27a574ed09b9091601d1053442
BLAKE2b-256 checksum
How to use checksums
be79c7d20c2c92432e019784f63906936c3af1ecf06e470d01c8eeaa3f0f33b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for mirrorworld 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mirrorworld-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

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.

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