About program World Walk Web. March 27, 2021, 10:01 a.m., by Lem
After a few months, the IRL Fog of War comes back with some satisfying improvements.
For memory, the Fog currently relies mostly on altitude around positions to define the visible area. A strong altitude database access was then mandatory (via API or local raster file analysis). The opentopodata API seems comprehensive and mature enough for this work. The main downside, which is also probably the reason they are still alive, is that there are limitations on requests per second and per day (for free access). For Europe, the Eu-Dem database gives a good precision for our use case: 25m. Enough to have a decent rendering of hiking sessions.
Even with the request limitation, it was enough to set up an advanced system for altitude management (with local storage for already asked informations), allowing the drawing of a more relevant Fog (even if the system is not designed for urban areas with occulting buildings).
With this basis, a lot of progress can be made on visibility, altitude gathering strategy algorithms and parameters adjustments to balance between precision and API availability.
The main effort will be on usability, since a lot of operations are done manually for the moment.
About fog aspect, a difficult but interesting point would be to direct the vision field, since humans have no eyes behind the head. This would request a lot of preprocessing to know the walking direction, and I'm not sure the difference would be so significant.