

Wait, the optimization does not leave the browser. There isn’t any need for a web server.
If this can be used as an offline PWA, it doesn’t even need to be ‘self-hosted’, except for keeping it up to date.
Edited: removed reference to “device”, to avoid confusion.
For driving around a city, 50km is already more than enough