OpenStreetMap logo OpenStreetMap

Why Geometry Matters

Posted by kumakyoo on 3 June 2025 in English.

At work1, I started creating a real pedestrian routing that uses sidewalks rather than the middle of the road (unlike most pedestrian routing software nowadays). This is necessary for calculating safe routes to and from schools. In this case, it really matters which side of the road the children use and which crossing they take.

The OSM community mainly uses two methods of mapping sidewalks (and the choice between these two methods directly influences the mapping of crossings): One option is to attach them as tags to the road (for example sidewalk=both), and the other is to use separate geometry. In this post, I would like to show an example where mapping the geometry separately makes a huge difference.

 

A Dangerous Crossing

A dangerous crossing in Aachen

The image shows one of Germany’s most dangerous places for pedestrians, according to accident statistics 2. This crossing is located near Rothe Erde in Aachen.

The following figure, taken from a screenshot of JOSM, shows the OSM data for this crossing.3

The same crossing in JOSM

As you can see, the crossing has five arms, one of which (the south east arm) is split into two separate lanes. There is a pedestrian crossing with traffic lights at each arm and tags reveal that there are sidewalks on both sides of each arm.

 

The Question

Let’s take a closer look at the two crossings at the north and north-west. Can you guess the geometry of these two crossings? Are they parallel to the next street (A in the figure above) or perpendicular to the street they cross (B in the figure above)? What do you think? Please try to answer this question, before reading on…

 

The Answer

Looking at the aereal image reveals, that neither is correct: One crossing is parallel to the next street (with the node of the crossing being placed slightly off) and the other one is (almost) perpendicular to the street it crosses:

The crossing with areal image in the background

What I want to demonstrate with this example: It’s impossible to determine the geometry of the pedestrian crossings from OSM data with attached sidewalks. You need separately mapped sidewalks to be able to determine this geometry.

 

Why Does it Matter?

Take a look at the next figure: Cars travelling from south east to north and pedestrians crossing the arm going north get a green light at the same time. This is called “bedingt verträglich” in German, meaning “limited compatible”, and is a standard for traffic lights in Germany.

Why geometry matters at this crossing

The cars turn at an angle of 135°. This is considered dangerous because cars can travel much faster than they could at, say, 90°. This angle can be derived from OSM data. However, the position and direction of pedestrians cannot be derived: A pedestrian at position A might not see an approaching car because it is coming from behind him, while a pedestrian placed at position B will have a better chance of spotting the car in time because, in this case, the car is arriving from the left.

There is one more important detail: The distance from one side of the street to the other side of the street differs in both cases: In case A, it is 16.7 meters; in case B, it is only 13.9 meters. A difference of 2.8 meters, or about three seconds less of exposure, could make the difference between a safe and unsafe crossing. Again, this can be known with separately mapped sidewalks (if kerbs are mapped), but is almost impossible to determine otherwise.

 

This was just one brief example of an application of OSM data where the geometry of pedestrian ways is important and where this information cannot be obtained if sidewalks are mapped as part of the highway. There are more, and perhaps I will write about them in an upcoming blog post.

 

Cofounded by EU and NRW


  1. Research project SAFER: The project aims to create a smart pedestrian router to help plan better school routes. In addition to distance, other criteria like safety (which cannot be measured by numbers) will be taken into account. 

  2. In a 2023 study, I analysed all cluster points of pedestrian accidents in Germany between 2019 and 2022. With 8 accidents, two of which resulted in severe injuries, this crossing was ranked 10th. 

  3. I removed some unrelated details. 

Location: Viktoriaviertel, Frankenberger Viertel, Aachen-Mitte, Aachen, Städteregion Aachen, North Rhine-Westphalia, 52066, Germany
Email icon Bluesky Icon Facebook Icon LinkedIn Icon Mastodon Icon Telegram Icon X Icon

Discussion

Comment from derloris on 8 June 2025 at 12:58

Thanks for your thoughts! One unsolved problem with separate sidewalk mappings: In countries where it’s legal to cross a street anywhere, separate sidewalks create the impression that crossing the street is not allowed between crossings. Routers then create detours which are not necessary and make walking as sustainable transport mode less attractive. Of course there are groups of people like children on their way to school who prefer crossing on marked crossings, but there are other groups like people in a hurry or people with walking difficulties who prefer to cross between crossings.

Comment from Tomas_J on 8 June 2025 at 16:38

Hallo, I map for visually impaired persons and there is indeed important the micromapping of the sidewalks and pedestrian crossings (including the kerb positions and angles and traffic isles). The footway=sidewalk method (sidewalks separated form the streets) is essential for these cases. I prefer this method.

Comment from kumakyoo on 9 June 2025 at 12:09

One unsolved problem with separate sidewalk mappings: In countries where it’s legal to cross a street anywhere, separate sidewalks create the impression that crossing the street is not allowed between crossings.

I’m familiar with this argument (Germany is one of these countries…) In practice, however, I don’t think it makes much difference:

Routers then create detours which are not necessary […]

Up until now, I have never seen a real life example of this. The only examples I have seen are artificial ones where the starting point is on one side of the street and the goal is directly opposite on the other side. In such a situation, you hardly need a router to cross the street, do you?

Moreover: The tagged version still doesn’t indicate whether you can cross the street at a certain point. There are lots of places where crossing is almost impossible, for example because there is too much car traffic or the sight is blocked. (In Germany, it’s even forbidden to cross at such places.)

All in all, I think this problem is just a theoretical problem. But I might be wrong.

Comment from kumakyoo on 9 June 2025 at 12:18

I map for visually impaired persons

Just out of curiosity, what sort of application are you targeting? Visually impaired persons usually can’t use an ordinary map. So I guess it’s about a router giving spoken directions? Or are there means to create a Braille-like map, which can be read with fingers? Or something completely different?

Comment from Tomas_J on 9 June 2025 at 12:51

I am targeting at the Seeing Assistant Move application (using Valhalla routing service) and also at the projects regarding physical printed tyflo maps from ELSA Support Centre for Students with Special Needs at CTU (see the links below) - Czech republic. Generally I feel high demand from visually impaired persons for better data quality in OSM.

https://play.google.com/store/apps/details?id=pl.com.tt.seeingassistantmove

https://www.elsa.cvut.cz/en/

Comment from derloris on 9 June 2025 at 17:50

Up until now, I have never seen a real life example of this. The only examples I have seen are artificial ones where the starting point is on one side of the street and the goal is directly opposite on the other side. In such a situation, you hardly need a router to cross the street, do you?

E.g. everytime when you start at one point of the street at a certain address (like a house or a shop) and need to cross the street before the next crossing, because you have to turn into another street (e.g. on T-formed junctions whithout marked crossings).

Maybe adding always two “footway=link” sections on both street sides everytime where streets or footways branch off could help.

Moreover: The tagged version still doesn’t indicate whether you can cross the street at a certain point. There are lots of places where crossing is almost impossible, for example because there is too much car traffic

That’s true of course, but in the end it’s the same like other risks which can not be mapped like to get stuck with a car in traffic or wait for a long time on your bicycle before entering a priority road.

or the sight is blocked. (In Germany, it’s even forbidden to cross at such places.)

In Austria it’s allowed afaik - only right next a traffic light it’s still forbidden here and barriers like chains must not be climed over. In the past it was also forbidden within 25 meters next to a zebra crossing, but this regulation was removed a few years ago, so it’s more legal and more common today than some years ago.

All in all I’m not against separate sidewalk mapping and dont’t have “the one and only alternative solution”, I just wanted to share some thoughts based on the use of footpath routers in recent years. :-)

Comment from kumakyoo on 11 June 2025 at 15:44

E.g. everytime when you start at one point of the street at a certain address (like a house or a shop) and need to cross the street before the next crossing, because you have to turn into another street (e.g. on T-formed junctions whithout marked crossings).

Yes, for the separate sidewalks to work, there need to be crossings at junctions, if it is possible to cross there. Even if the crossings are not visible. It’s like bus lines. They are not visible on the ground either, but they are still mapped. I always add informal=yes to such crossings.

Log in to leave a comment

OSZAR »