Suaicheantas OpenStreetMap OpenStreetMap

An leabhar-latha aig GrumpyGorilla

Clàran an leabhair-latha o chionn goirid

Finding Broken Websites in OSM Data

Air a phostadh le GrumpyGorilla 18 An Cèitean 2024 sa chànan English

Recently while updating business information in my area, I noticed that outdated POIs would often include a defunct website. When attempting to follow the links in OSM, I was just presented with an error. That gave me the idea that I could proactively identify POIs that may need validated in person.

After some tinkering, I came up with a python script that will query OSM data for nodes with websites, then iterate over the websites to see which return errors when connecting. I started with logging these to a text file, but then realized that I could export them all to a kmz file and import them into Organic Maps. Now when I’m out and about I can launch Organic Maps to find areas that I should validate.

Screenshot of Organic Maps with pins through Amsterdam

When you select a pin, it’ll give you more details on the failure.

See full entry