Surfaces and stairs, from OpenStreetMap

Published 8 October 2026

Peakline carries a database of paths' surfaces and flights of stairs, for the strips under a route's elevation chart. It is derived from OpenStreetMap, and you may have it here, free, under the Open Database License.

Licence

This database is made available under the Open Database License 1.0 (ODbL). It is derived from OpenStreetMap, © OpenStreetMap contributors, which is made available under the same licence.

You may copy, distribute and adapt it under the ODbL's terms: keep this notice with it, credit OpenStreetMap, and offer what you derive from it under the ODbL.

Download

What it holds

From Geofabrik's Hong Kong extract of OpenStreetMap, of 5 October 2026:

135,769 lines: 57,266 of a known surface or stairs and 78,503 of no known surface, with 595,867 points.

How it was made

With the tools in Peakline's engine:

sh docs/verification/scripts/fetch_osm_ways.sh data/sources/osm/2026-10-06
hk3d-bake surfaces <dir> --ways data/sources/osm/2026-10-06/ways.geojson
hk3d-bake pack --levels 5-5 --out surfaces.hk3a <dir>
hk3d-bake surfaces-geojson surfaces.hk3a --out surfaces.geojson

Each way's surface is mapped to the nearest of the ten above. Ways without one are kept only near a way with one, or near stairs. Nothing is added that OpenStreetMap does not hold.

The .hk3a format

An archive of cells of 24 × 19.2 km. Each cell is a list of lines, a line written whole into every cell it crosses. A line has a kind byte, its surface in the low seven bits and stairs in the top bit, followed by its points as zigzag variable-length steps of 0.5 m. The GeoJSON holds the same lines, each once.

路面與樓梯數據,來自 OpenStreetMap

發佈日期:2026 年 10 月 8 日

Peakline 內附一個路徑路面及樓梯的數據庫,用於路線高度圖下方的路面資料條。它衍生自 OpenStreetMap,你可在此按《開放數據庫授權協議》免費取得。

授權

本數據庫按 Open Database License 1.0(ODbL) 提供。它衍生自 OpenStreetMap,© OpenStreetMap 貢獻者,亦按同一授權提供。

你可按 ODbL 的條款複製、分發及改編本數據庫:須保留本聲明、註明 OpenStreetMap,並將你衍生的數據庫按 ODbL 提供。

下載

內容

取自 Geofabrik 於 2026 年 10 月 5 日的 OpenStreetMap 香港數據:

共 135,769 條線:57,266 條屬已知路面或樓梯,78,503 條未知路面,合共 595,867 個點。

製作方法

使用 Peakline 引擎的工具,指令見英文版。每條路徑的 surface 會歸入上述十類中最接近的一類;未標路面的路徑只在接近已知路面或樓梯時保留。不會加入任何 OpenStreetMap 沒有的內容。