Skip to content

Instantly share code, notes, and snippets.

View Mazur93's full-sized avatar
🌍

Mazur93

🌍
  • Technical University Vienna
  • Vienna, Austria
View GitHub Profile
@Mazur93
Mazur93 / Download open street map data with python 3
Last active May 1, 2018 10:28
Here is a simple python 3 script that downloads all OSM data within a given bounding box via the overpass API
# author: Bartosz Mazurkiewicz
# Downloading OSM data via the overpass API with python3. Pay attention to not generate that much traffic.
# The servers are for everyone and the resources are limited. See the usage policy at http://wiki.openstreetmap.org/wiki/Overpass_API
import time
import os
import urllib.request
# Bounding box - example Florence, Italy
north = str(43.8)