OpenStreetMap logo OpenStreetMap

bmaczero's Diary

Recent diary entries

Identifying Wrong-Size Sports Pitches (Overpass/MapRoulette)

Posted by bmaczero on 22 December 2025 in English. Last updated on 23 December 2025.

One OSM-related activity I spend lots of time on is micromapping recreational areas, such as parks. Manually detailing out areas is satisfying, but I’ve also been on the lookout for ways to put my programming skills to use.

A common pattern I noticed in these areas is representing a block of pitches or courts (such as tennis courts) as a single, abnormally large “tennis court”.

A tennis area with a single rectangle around the whole thing.

It’s a start, but obviously could use some refining. Each individual court could be represented by a separate area. While this probably needs no justifications, I’ll provide a few since I’d like to convince myself I’m working on improvements that might mean something to someone, rather than just creating data because it gives me dopamine:

  • Independent courts allow for better querying: we can ask questions like “how many tennis courts are in my city?” and get an accurate answer.
  • Some renderers (like openstreetmap.fr) render various courts with appropriate marking lines, allowing quick identification.

See full entry