Local map giving 403 error

Hello,

I’m a recreational hiker and OSM mapper. I use the Komoot app (which uses OSM) for orientation during my hikes and after my hikes I submit any corrections, new paths and roads that I find.

For this type of usage, it would be great if OSM had a heatmap generated from uploaded GPX traces, so I could easily determine which areas I haven’t explored yet.

Because such a feature does not exist (or I couldn’t find it) I have built my own with the help of AI. Given a list of GPX files, it will output a local HTML file where my personal heatmap is overlayed on top of OSM maps. This HTML file is intended only for my personal usage.

This has been working fine for the last few months, but yesterday I started getting files with a 403 error and a link to osm.wiki/Blocked

I realize now that the app AI built was naive, in the sense that it did not cache tiles locally. I intend to improve the app to add caching, but I have a few questions:

  1. Is my intended use deemed acceptable? I’m not sure a local page will be able to fulfil the referer / user-agent requirements.

  2. How can I unban my local page?

  3. Could this feature be included in OSM editor so that I don’t have to build my own?

Kind regards,
Miguel Santos

Do you know https://yosmhm.neis-one.org/ and https://hdyc.neis-one.org/? They show a heatmap of your edits (not of gpx traces), if this is sufficient for you.

You coud also drop all gpx traces into iD and switch off everything else except map background.

About question 1 and 2, you’ll find a lot of relevant information in this thread (and probably a few others) : Error 403 when using local files - referer missing - can I use User Agent and what should it contain - #57 by TrickyFoxy

Regarding question 3, I wouldn’t hold my breath, but you can always open an issue to start a discussion.

Regards.

Over the past two years I have seen serveral apps or webservices offering what you’re describing so I don’t really see why you’d need to “build” your own.

Having typed that I also have to apologise that I can’t name any. Sorry.

JOSM has a heatmap view for GPX files.

It could definitely do with some more ability to fine tune it e.g. for pixel size, but it exists.

Thanks everyone for your help!

Once I’ve identified that the issue was the lack of a referrer, I was able to fix the issue with my HTML page. Here’s how it looks, in case you’re curious. It makes it easy to see which areas I haven’t explored yet.

Kind Regards,
Miguel Santos

I’m surprised no one has mentioned the OpenStreetMap GPS overlay. It renders all GPS traces uploaded to OSM. While not exactly a heatmap, it effectively becomes one. It also has the benefit that other contributors can use the data for mapping as well.
I try to record my trips when in a new part of my region. It’s pretty fun! (One may wish to put some effort into anonymizing their travel habits a bit, though…)