CLI tool to bulk-download street-level imagery from Mapillary
Project description
cityzero
CLI tool to bulk-download street-level imagery from Mapillary fast. You can define a bounding box or pick a city, and it discovers and downloads every available image of that area, with GPS embedded in EXIF, resumable downloads, and a SQLite-based cache for easy re-runs and fault resistance to interruptions.
This tool was spun off from CityZero, where its original commit history can be found.
Install
pip install cityzero
Setup
You'll need to get a client token from mapillary.com/dashboard/developers and export it:
export MAPILLARY_CLIENT_TOKEN=MLY|...
Usage
# Interactive mode — pick a city, then download
cityzero
# Specify a city directly
cityzero --city "San Francisco"
# Custom bounding box
cityzero --bbox "-122.52,37.70,-122.35,37.83"
# Limit images (useful for testing)
cityzero --city "New York" --limit 100
# Show available cities
cityzero --list-cities
Options
| Option | Description |
|---|---|
--city NAME |
Download from a predefined city |
--bbox W,S,E,N |
Custom bounding box |
--limit N |
Cap the number of images to download |
--output-dir PATH |
Output directory (default: <city> or bbox# in current directory) |
--preview |
Open an interactive map in the browser before downloading |
--state STATE |
Resume behaviour: maintain | merge | rediscover |
--granularity 1-100 |
Discovery thoroughness (default: 25) |
--list-cities |
Show predefined cities and exit |
Discovery states
When a previous run exists for a city:
| State | Behaviour |
|---|---|
maintain |
Load from cache, skip API (default) |
merge |
Re-discover and add new images to existing cache |
rediscover |
Wipe cache and run a full fresh discovery |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cityzero-0.2.0.tar.gz.
File metadata
- Download URL: cityzero-0.2.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4741e98931f69707e2ddccd645b19ee10ead913b1516b483a6ccba45f115e40d
|
|
| MD5 |
62905b9804f81cd8a7cc4e0a7ab9c8e2
|
|
| BLAKE2b-256 |
e6356e8a7c73393cd4e9aef3681c960aa004be917a3ff3cfdc4d7110885c6d44
|
File details
Details for the file cityzero-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cityzero-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
946cee112d8a239dae37a17ed553bf950e6a728af176d8c884c04a96d1567b62
|
|
| MD5 |
9d17beeb10380534454c5e571e86ea0f
|
|
| BLAKE2b-256 |
70e8da60383f0f3d4ddf1928b23f3c1093c86ca3dc775372458e4aa5844281b0
|