I love YOSMHM. Pascal has done a great job with it, and it’s very cool. In fact, given my desire to map the entire world, I rely on YOSMHM to tell me where to map next. And just recently, it’s improved from updating weekly/monthly to daily! But, there are some limitations.
- One blob per changeset. If I map a long highway, a dot at the center of the highway really doesn’t show where I mapped.
- Missing data. I have around 12,100 changesets, but YOSMHM only shows 9356. That might explain why it doesn’t show the mapping I did in southern Chad, or eastern Cameroon, or Agadez in Niger, or many other places.
So, I set out to see if I could make my own heatmap. Here are my first steps.
- Thanks to a great answer from EdLoach it was easy to get XML files for all my changesets.
- I parsed those XML to get the extents (min_lat min_lon max_lat max_lon) of each changeset.
- I tried a number of different web-heat-map tools, and settled on Leaflet + Leaflet.heat because it was super easy to use. I just pass the center of each changeset’s extents to Leaflet.heat as a point, and the result looks like this.
Finally, I can see at least some blob in every part of the world I’ve mapped. Unfortunately, unlike YOSMHM, all the changesets are weighted equally (it would take a lot more querying and parsing to weight them) so that, for example, it’s hard to tell that I’ve done 10x more mapping in Namibia than in Japan.
I can dream of a better heatmap! It would have:
- It should show added/modified/deleted in different colors (like green/blue/red) so I can quickly see what places I’ve done more correction, vs. adding new features. India, Africa and Central America are the only places I’ve added huge amounts of detail to OSM, but you can’t tell that by looking at YOSMHM. Is there a better/faster/more polite way to get all that detail without making 12,100 queries to the OSM API? I can’t just parse the planet file, because that only has current state, not history.
- Not damn Mercator. Anything else would be better. How about Goode Homolosine? Can I get “free” background tiles (like Mapbox’s) served in anything beside “web mercator”?