@AkuAnakTimur I remember a code to reduce the number of nodes after a hand-painted coastline. AI should do such too, at last.
If I recall correctly, Meta/Facebook did mention about an algorithm to reduce most of them automatically. Alas, human intervention is still needed (some were still have to be trimmed further)
@AkuAnakTimur Oh, decades ago, I had this see-line drawing function in my https://wiki.openstreetmap.org/wiki/TosmE
And you will find it as "buildSimplifiedNodeList" in here:
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!