Go to file
2023-09-20 22:14:40 +02:00
doc Add some documentation 2023-09-20 22:10:06 +02:00
.gitignore Switching to pyexiv2 2023-09-12 14:31:10 +02:00
download.py Add some documentation 2023-09-20 22:10:06 +02:00
model.py Switching to pyexiv2 2023-09-12 14:31:10 +02:00
README.md update readme 2023-09-20 22:14:40 +02:00
writer.py use new metadata for offset localize 2023-09-18 22:16:07 +02:00

mapillary_download

Simple code to download images in one or several mapillary sequences. The images will be geotagged and oriented.

How to use

change the access token with your access token and the sequence ids with the ids of the sequences you want to download

python download.py "MLY|xxxx|xxxxxxx" --sequence_ids xxxxxxxxxxx xxxxxxxxxxx

Available arguments

python download.py -h
usage: download.py [-h] [--sequence_ids [SEQUENCE_IDS ...]] [--image_ids [IMAGE_IDS ...]] [--destination DESTINATION]
                   [--image_limit IMAGE_LIMIT] [--overwrite]
                   access_token

positional arguments:
  access_token          Your mapillary access token

optional arguments:
  -h, --help            show this help message and exit
  --sequence_ids [SEQUENCE_IDS ...]
                        The mapillary sequence id(s) to download
  --image_ids [IMAGE_IDS ...]
                        The mapillary image id(s) to get their sequence id(s)
  --destination DESTINATION
                        Path destination for the images
  --image_limit IMAGE_LIMIT
                        How many images you want to download
  --overwrite           overwrite existing images

How to get my access token

  • Go to https://www.mapillary.com/dashboard/developers

  • Click on "Registrer Application", enter the needed informations, enable the application to "Read" data, then click on register :

    register application

  • When this registration is done, click on "view" in the token column. This is you access token :

    token

How to get my sequence id (or sequence key)

  • Go to https://mapillary.com/app

  • Click on one of the picture of the sequence you want to download

  • Click on the "image option" button (right panel)

  • Click on "advanced" then click on the sequence key to copy it in the clipboard

    snapshot