Thanks for creating this, just tried it in my local area and it generated a route that I already enjoy !! I shall no doubt get a lot of use out of this, whilst it’s not the intended use - I will cycle a few of the routes over the next few weeks !
One suggestion: Have changes to the route push state to the history. That way you can use the back button on the browser if you make a mistake. Right now it'll totally take you off of the page.
Thanks very much! Personally I find it a little annoying if a site pushes state to the history very frequently. If I genuinely want to get off the site I end up clicking back loads, and then go too far!
I tried to solve this in Trail Router by putting an undo button on the screen (bottom right).
I would just follow how Google Maps works. I think that's how my brain was expecting Trail Router to work, since it visually and functionally is very similar to using the "Directions" feature of GMaps.
It’s quite amazing these days there’s enough free data and software available you can create such a tool on your own! How do you plan to make it pay the server costs though?
Fully agreed - the amount of data openly available is astounding. I think many people would be surprised at the richness of the tagging information within OpenStreetMap. Without OpenStreetMap, this project and countless others would not be possible.
Mapping costs would be by far the biggest one. However, I'm very lucky that after the last big spike in traffic, Mapbox very generously admitted me to their community programme. You can read more about that here: https://trailrouter.com/blog/mapbox-community-programme/ The server costs are quite modest at the moment (under $200/mo), which I'm lucky enough to be able to self-fund through my other work. If usage were to massively increase then maybe I'd need to find a way recoup costs. But even all of the hits from HN have barely put a dent in the server utilisation, so there's plenty of headroom for the foreseeable future.
Comments (128) 41 threads
Earlier commentsOne suggestion: Have changes to the route push state to the history. That way you can use the back button on the browser if you make a mistake. Right now it'll totally take you off of the page.
I tried to solve this in Trail Router by putting an undo button on the screen (bottom right).
Mapping costs would be by far the biggest one. However, I'm very lucky that after the last big spike in traffic, Mapbox very generously admitted me to their community programme. You can read more about that here: https://trailrouter.com/blog/mapbox-community-programme/
The server costs are quite modest at the moment (under $200/mo), which I'm lucky enough to be able to self-fund through my other work. If usage were to massively increase then maybe I'd need to find a way recoup costs. But even all of the hits from HN have barely put a dent in the server utilisation, so there's plenty of headroom for the foreseeable future.
All comments shown.
Couldn't load more comments. Check your connection and try again.