CLI tool to bulk-download street-level imagery from Mapillary
Project description
cityzero
CLI tool to bulk-download street-level imagery from Mapillary at the biggest scales. Define a bounding box or pick a city and it discovers and downloads every available image in that area: upwards of 1–4 million images per major city, or 10–100k for individual neighbourhoods. GPS is embedded in EXIF, and downloads are resumable and fault-tolerant upon interruption thanks to a SQLite-based cache.
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 set it in your environment:
macOS / Linux
export MAPILLARY_CLIENT_TOKEN=MLY|...
Windows CMD
set "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.1.tar.gz.
File metadata
- Download URL: cityzero-0.2.1.tar.gz
- Upload date:
- Size: 17.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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 |
311dedd58151f311a9904efc53707ebc20841ffebe07ed03f517e92333269986
|
|
| MD5 |
dfa807b3f23358ba8214842f32547060
|
|
| BLAKE2b-256 |
c208fd21e5bd51e72c697b4cae665858ed0efc946a336729effa6565b7a43288
|
File details
Details for the file cityzero-0.2.1-py3-none-any.whl.
File metadata
- Download URL: cityzero-0.2.1-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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 |
b3a7d08f75794cbbdbf0866aa0d82249fd57dd30cd287fa1bf059027a3245df4
|
|
| MD5 |
4cfed935a7f54dfbc532924105f5630b
|
|
| BLAKE2b-256 |
237c8717687f2ff7ee04ec62eed24010e6bbb3267cd89f6cea213cd25d4ca0c6
|