城市道路全图
city-roads,Andrei Kashcha (anvaka),2020 年

正在布展…
它是怎么做的
- 第 1 步用 Nominatim 搜索城市并获取其行政边界 ID
- 第 2 步向 Overpass API 请求该区域内所有 highway 线段
- 第 3 步把所有道路线段一次性写入 WebGL 线段缓冲区(w-gl 库)渲染
- 第 4 步可调线条颜色、背景、宽度,并导出 PNG 或 SVG
复刻配方
一段技术配方,可以直接交给 AI 编程助手,也可以自己照着写。想指定技术栈、位置和性能预算,就把它加入实现方案。
Geocode a place name to an OpenStreetMap area id with Nominatim, then send an Overpass QL query for all ways tagged highway inside that area, returning node coordinates. Project longitude and latitude to a flat Mercator plane and pack every road segment into one WebGL line buffer so hundreds of thousands of segments draw in a single call. Add pan and zoom, a colour picker for lines and background, and export to PNG via the canvas or to SVG by writing path data.


