Skip to content

Instantly share code, notes, and snippets.

View yochananscharf's full-sized avatar

Yochanan Scharf yochananscharf

View GitHub Profile
@cbeddow
cbeddow / mapillary_jpg_download.py
Last active July 19, 2024 16:01
Download Mapillary images a JPGs
import mercantile, mapbox_vector_tile, requests, json, os
from vt2geojson.tools import vt_bytes_to_geojson
# define an empty geojson as output
output= { "type": "FeatureCollection", "features": [] }
# vector tile endpoints -- change this in the API request to reference the correct endpoint
tile_coverage = 'mly1_public'
# tile layer depends which vector tile endpoints: