Skip to content

Instantly share code, notes, and snippets.

(
node(id:27653001,30119975,34991538,35345856,50811997,95769542,110646893,128537061,146517294,147833870,151348506,240818989,244310754,244915779,245028512,245917001,246770151,248072666,248198293,248701898,248811138,248923456,248932665,252267351,252961401,253358872,255472178,255603270,255792055,255944476,257818832,259123322,260646041,264057026,264488289,266324749,269091448,269235534,270312629,271190394,271376285,272173532,272501714,273929914,274369355,276288138,279041325,279392867,279471671,279895096,281079990,283331635,283348172,284143477,285963746,286081303,286482541,287004791,289435212,290222364,290227678,290314380,291797192,292170200,292850897,294867893,295183361,296335219,296550878,296895059,298601700,298858362,301053349,301200021,301600192,302634882,302980442,303159828,303596351,304642313,305344369,306597618,308016826,308365567,312342730,312655865,312889448,313205162,313397692,314168739,314879482,316123729,321759065,322918699,325243606,330070077,330875058,331278022,331314395,331614393,332629790,333550932,
type id
node 11705102975
node 11704024977
node 11704000914
node 11697920745
node 11694819727
node 11691996416
node 11691957750
node 11691635289
node 11691612625
plz name einwohner qkm
48599 48599 Gronau 45509 78.802458
41334 41334 Nettetal 41462 83.882393
96450 96450 Coburg 41127 48.297662
40822 40822 Mettmann 38067 42.570593
52146 52146 Würselen 37223 34.387549
16303 16303 Schwedt 36610 361.496813
32457 32457 Porta Westfalica 35644 105.233961
12627 12627 Berlin Hellersdorf 35353 4.006235
44866 44866 Bochum 34969 9.460798
@hfs
hfs / places_stats.ipynb
Created July 28, 2023 16:01
Overture Map Foundation Places data set statistics
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hfs
hfs / bbox2tiles.py
Created March 15, 2023 06:30
Convert a bounding box given as two longitude/latitude pairs into a list of map tile coordinates
#!/usr/bin/env python3
import argparse
import math
import re
import sys
def deg2num(lng_deg, lat_deg, zoom):
lat_rad = math.radians(lat_deg)
n = 2.0 ** zoom
@hfs
hfs / .gitignore
Last active October 11, 2023 14:57
Find long dead-end roads in a city in OpenStreetMap
/cache
@hfs
hfs / buildings_without_landuse.geojson
Last active April 18, 2021 09:48
OpenStreetMap: Buildings without landuse in Germany
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hfs
hfs / LICENSE.md
Last active July 27, 2022 19:29
OSM: Residential areas without buildings

This data is derived from OpenStreetMap.

Ⓒ OpenStreetMap contributors

The data is published under the terms of the Open Database License.


ODC Open Database License (ODbL)

@hfs
hfs / LICENSE.md
Last active July 27, 2022 19:29
OpenStreetMap landuse areas in Germany which don’t contain any buildings, but are expected to. Data from: 2021-01-30.

This data is derived from OpenStreetMap.

Ⓒ OpenStreetMap contributors

The data is published under the terms of the Open Database License.


ODC Open Database License (ODbL)

@hfs
hfs / bbox2geojson.sh
Last active October 15, 2023 07:10
Convert a GPS coordinate bounding box into GeoJSON using jq to display it e.g. on geojson.io.
#!/bin/sh
jq -nR '
{
"type": "FeatureCollection",
"features": [
inputs | select(length>0) | sub("[()]"; ""; "g") | split(", *"; "") | map(tonumber) |
{
"type": "Feature",
"properties": {},