openbikesensor / OpenBikeSensor-Scripts

GNU Lesser General Public License v3.0
12 stars 7 forks source link

Classificator for distinguishing urban from rural roads #15

Open FlorusCiphersmith opened 3 years ago

FlorusCiphersmith commented 3 years ago

The legal minimum distance for overtaking depends on whether the road is located within or outside a built-up area. The OpenStreetMap way tag "zone:traffic" basically provides this information. However, it is not used for annotation in many regions. Currently, the distance limit is chosen as 1,5m by default, which is thus wrong often.

The proposed solution is to introduce a hand-crafted or trained binary classifier which predicts from existing way properties such as speed limits whether this is an urban or rural road and annotates ways accordingly. This prediction is always outvoted by the "zone:traffic" tag.

opatut commented 3 years ago

Some stats about the zone:traffic tag: https://taginfo.openstreetmap.org/keys/zone:traffic#values

It is clear from that list, that

When implementing this, try to make it work regardless of the country you're in. Make sure to have some generic fallback, but consider that traffic in France works different from traffic in Germany.

opatut commented 3 years ago

Also compare its global distribution with the alternative maxspeed :)