[Tagging] RFC - Feature Proposal - area of steps for pedestrians.

Tobias Knerr osm at tobias-knerr.de
Fri May 3 15:19:37 UTC 2019

On 11.04.19 23:28, Tobias Knerr wrote:
> A decent heuristic is to connect each node from the upper border to the
> closest point (not necessarily a node) on the lower border, and vice
> versa. Then you place steps at regular intervals along these connections.
> For common step shapes, this should produce the expected results. I
> might be able to cobble together a proof of concept over the next few
> days if that could help convince you?

So I finally got around to building that prototype to test my idea. The
code only needs a highway=step way and an area:highway polygon as input,
and produces sensible results for common shapes of straight stairways.
I'm pretty happy with the results:


This image shows a few examples of steps with a basic 3d rendering
alongside a debug view that highlights the algorithm's internal view of
the data (in particular the automatic decomposition into left/right and
front/back parts of the outline, and the construction of the steps).


More information about the Tagging mailing list