![[OC] I made an interactive map of how close houses are to roads (using OpenStreetMap)](https://preview.redd.it/44c5zdhhlexg1.png?auto=webp&s=2f1683fb5b9f8f28f0825f063eb9e350f9ff9493)
[OC] I made an interactive map of how close houses are to roads (using OpenStreetMap)
I built a small website that shows the distance between house walls and the nearest road, using OSM data.
Data-processing (Rust + python):
- I read building and road data from .osm.pbf files
- For each building wall vertex, I compute the distance to the nearest driveable road
- I write that whole data into two .geojson files (per-wall file for lower LODs, and average point per-house file for higher LODs)
- I convert those .geojsons into .pmtiles using tippecanoe
Rendering (Deckgl + MapLibre):
- I color the building walls by distance
- At low zoom, it shows one dot per building/cluster
- At high zoom, it shows detailed wall segments
Data source: OpenStreetMap
Happy to discuss and read ideas, this is my first public project and will certainly not be the last one.
u/Alternative_Meal8373 — 7 days ago