Skip to main content

CLI tool to bulk-download street-level imagery from Mapillary

Project description

mapillary-dl

CLI tool to bulk-download street-level imagery from Mapillary. Define a bounding box or pick a city, and it discovers and downloads every available image — with GPS embedded in EXIF, resumable downloads, and a SQLite cache that makes re-runs instant.

This tool was spun off from CityZero, where its original commit history can be found.

Install

pip install mapillary-dl

Setup

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
mapillary-dl

# Specify a city directly
mapillary-dl --city "San Francisco"

# Custom bounding box
mapillary-dl --bbox "-122.52,37.70,-122.35,37.83"

# Limit images (useful for testing)
mapillary-dl --city "New York" --limit 100

# Show available cities
mapillary-dl --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: data/<city>)
--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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mapillary_dl-0.1.2.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mapillary_dl-0.1.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file mapillary_dl-0.1.2.tar.gz.

File metadata

  • Download URL: mapillary_dl-0.1.2.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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

Hashes for mapillary_dl-0.1.2.tar.gz
Algorithm Hash digest
SHA256 35974edbf957ea153cbdafccd17bc3573db3184cad9158d0d95ecdd673ab4b4c
MD5 4248a33d873280d5a9bb696c19a19feb
BLAKE2b-256 3add5c052604d04b42ea1e28c83901ad0adf516df2bf84a225f654849ad83313

See more details on using hashes here.

File details

Details for the file mapillary_dl-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mapillary_dl-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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

Hashes for mapillary_dl-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 99222d645f8e58ed552f8f0dc5dff6f6121a43afe85b4cc8702835b37c17aa00
MD5 7bb7da8b0a6f78c59dac49d22dffcbc8
BLAKE2b-256 e032758b12b87bfa6b0f92459fed53d8e0ae0ba64a80d13b3ecc566d6ef2ed56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page