Show HN: Bike route planner that follows almost only official bike trails
279 points| allg12 | 1 year ago |trailimap.com
For each request you're shown what bike tracks/trails your route uses and can further explore them by showing them on map or going to the official trail route.
The main idea for the app is to have a friendly and easy to use planner that would make heavy use of official bike trails data (mainly from OpenStreetMap) and make it easy to plan a longer trip using the best possible bike routes out there.
Currently the app only works for the Euro region but I'm planning to add North America very soon and then rest of the world.
Technical overview: Route finding - Graphhopper sitting in a docker container on a Hetzner server somewhere in Germany. It has 38 GB of graph data(Europe) loaded into RAM for a fast graph traversal.
Web App - Next.js 14 with Typescript, backend on the newest version of .NET
Map tiles - right now I'm using MapTiler their free tier but planning to switch to my own home server soon and host the maps on it.
allg12|1 year ago
verelo|1 year ago
Cool idea, i'd love to try it but honestly i'd love it on my phone for the aforementioned reasons!
---
Edit: Some follow up remarks (From Chrome on a Mac)
1. I found it a bit confusing when creating a route. I assumed it would let me do address completion. The UI seems to just be naming my route instead, i think if you're going to borrow visually from Google maps you should follow their patterns.
2. I was able to add my first point (my home), but adding a second point never worked.
3. The click mechanic is a bit odd. I expect clicking elsewhere when the menu is open (add point/close) that the menu would go away - rather than re-appear in my new click location.
4. The map centred me over Europe, i'm in Canada however. Some GeoIP lookup here could give a better experience.
5. Re:point 2, this seems to work when i selected random locations in Europe. I assume this is a data issue? So the real issue here (apart from the routing not working) is there's no feedback on the UI when the routing fails.
6. Refreshing my screen loses my route. Any chance you could save it to local storage or something? Would be amazing if i could create this route on my desktop and then send a link to my phone (once mobile is supported?)
ickelbawd|1 year ago
qwertox|1 year ago
There are simply some things where a phone screen is just too small to use efficiently, and the fingers sometimes aren't just a good, precise enough input device.
Though I am a bit irritated by the brightness of the route on your site, it lacks contrast with respect to the surrounding map.
BTW, how is that routing done? Like which is the used routing engine and is it done server-side or in the browser?
---
It does seem to have a bug, where, when deleting a waypoint, the mouse still is in "create waypoint mode", and any mouse-down on the map, including for panning, results in adding a waypoint.
uoaei|1 year ago
Moru|1 year ago
pppone|1 year ago
hgomersall|1 year ago
jameal|1 year ago
`Error fetching route from Graphhopper Error: Network response was not ok`
I tried a couple times and got this in the U.S. In Europe I picked a couple random points and it worked fine.
oregoncurtis|1 year ago
Doctor_Fegg|1 year ago
I added a similar feature to cycle.travel (my site) a few months back. 5% of the work was writing the code to route only on waymarked routes, 95% was writing code to "heal" the accidental breaks in OSM bike route data...
allg12|1 year ago
wintermutestwin|1 year ago
PrismCrystal|1 year ago
Doing OSM editing from Mapillary imagery in various US states, I find that the roads that have roadside signage as “official bike routes”, predate modern safe(r) bike infrastructure. These are often highways that frankly look like death traps: no shoulder, high speed limits. Especially when so many North American long-haul cyclists now are riding “bikepacking” setups, it may be preferable for a router to prioritize quiet agricultural tracks and other unpaved terrain over the supposedly official bike route.
nodehopper42|1 year ago
https://brouter.de/essbee/
wintermutestwin|1 year ago
giamma|1 year ago
Heliosmaster|1 year ago
0l|1 year ago
wilson090|1 year ago
One of the most frustrating things for me with snapping to official paths is not being able to modify it for common workarounds (for instance, going across the Golden Gate bridge, everyone takes a shortcut through a parking lot, but every map routing platform I have used forces me to go the official route and messes up my nav)
burnt-resistor|1 year ago
I'm around hill country TX now where there is typically a patchwork of bike lanes segments that start and stop without much attention given to continuity of (sub)urban planning, walkability, safety, or design consideration for non-motorized users.
raywu|1 year ago
I too am interested in linking up good bike trails. Mostly for the east bay gravel systems. Today, I save GPX or geojson from routes I find on Strava and import into a map client (CalTopo). It’s a okay solution but my problem is in finding more alternative routes.
arjvik|1 year ago
cullenking|1 year ago
allg12|1 year ago
As for Graphhopper, I ran into some challenges during the Europe-wide import stage. It turns out 64GB of RAM wasn’t enough, so I ended up spinning up a 128GB instance on AWS. After tweaking some config settings and following the deployment guide, I finally got it working. I also had to change the source code a bit to link each "official bike route" edge to its corresponding OSM relation info but I managed to get it working in the end(using KVStorage and KValues).
For now, my planner is pretty basic, so I don’t want to bombard you with beginner-level questions. But if something more complex comes up down the road, I’ll definitely take you up on your offer to reach out. Thanks again—I really appreciate your help and generosity!
somic|1 year ago
clementmas|1 year ago
wnc3141|1 year ago
unknown|1 year ago
[deleted]
salmonlogs|1 year ago
It really reminds me of https://trailrouter.com/ which I've found amazing for finding new running routes.
It would be amazing to have similar functionality to suggest cycling routes of a certain distance that are mostly on bike trails i.e. suggest to me a 40km circular/out-and-back bike route from my house.
carlosjobim|1 year ago
Edit: I see now that the cycle.travel developer is here in the thread :)
greener_grass|1 year ago
Sometimes it's actually better to take the road, or you end up on a windy route that's near impossible to follow, debris everywhere, no right of way, etc.
I would like to try this with a "prefer offroad" option.
rconti|1 year ago
chainwax|1 year ago
Mobile needs some work. Are you planning on open sourcing this? I'm a mobile dev that might be able to clean that up a little. Good candidate for React Native.
unstyledcontent|1 year ago
pppone|1 year ago
[0] - https://cyclers.app/
[1] - https://www.cyclestreets.net/
wintermutestwin|1 year ago
So far, every planner I have tried from this thread has just been frustrating in one way or another. It seems very hard for most to understand things like road+MTB in one ride or that the map shows that the road doesn't go through, but I can simply walk through a gate that a car can't.
KomoD|1 year ago
This looks interesting and the mobile app seems well made, I like that it suggests multiple routes. Currently I just use Google Maps and it sucks here as well.
thenewrohirrim|1 year ago
allg12|1 year ago
jubjubbird|1 year ago
https://rc.nau.edu/cranc/?profile=ibc&layer=OpenStreetMap
rafram|1 year ago
benjiweber|1 year ago
INTPenis|1 year ago
The only feature I'd want is to be able to print the route on paper maps. I wonder if print CSS could be used to create pages of the whole route.
joshribakoff|1 year ago
I have personally had good luck with my Garmin watch. If I start out near a major trail, it tends to suggest routes along that trail. I’m able to input a desired length such as 10 miles and then it suggests multiple routes that are close to that length and use major trails. My biggest complaint with the Garmin is that it tends to suggest the same routes every day.
burnt-resistor|1 year ago
I was looking at Rails (API mode + partial asset pipeline) + Next.js for a project to start, and might entertain elixir or rust when scalability of slow areas became a problem. Sometimes I think there will be eventually a system of LLMs that will figure out how to manage and configure operating systems, write mobile native and web apps, and administer databases. And then they'll eventually rewrite programming languages and design silicon to be better for themselves, so that they will only need a part time human to clean and maintain the robot security guard.
thenewrohirrim|1 year ago
allg12|1 year ago
NowhereMan|1 year ago
doublehelix1020|1 year ago
gorgonical|1 year ago
One thing that would be very useful is to color the segments on the map based on the waytype. The proportions are given in the summary but unless I already know the route I can't tell where exactly those segments of difficult cobblestone are.
insane_dreamer|1 year ago
Would be cool to also show the elevation for a given segment along with its distance (in the route trail list).
And maybe when you click on a segment in the map, it should highlight that segment in the trial list so you see the length of that segment.
I realize you're just using existing map data, but some bike routes seem to be broken up with very small (couple km) gaps (shown in grey) -- is that really the case? (see Loire a Velo 4 for example)
anotheryou|1 year ago
Had to customize https://brouter.de/brouter-web to make something workable. But i's annoying to paste script, route, export gps, send to phone, import in komot just for a 30min ride. (Can share if anyone is interesed. Just be very respectful please, it does not avoid footpaths either)
lqet|1 year ago
Mainsail|1 year ago
Boulder, Colorado for reference.
mvdtnz|1 year ago
simlevesque|1 year ago
sammyo|1 year ago
dkga|1 year ago
Constructive feedback: at least on safari, it was not as smooth to navigate as other map apps, and also a bit cumbersome to add waypoints, etc.
A small but important thing - there is a typo in the “activity” spelling.
Hope that helps, and best of luck with it!
burnt-resistor|1 year ago
It would be great™ if it could drag new mandatory points and choose alternative routes. Also, switching from administrative to with satellite view would be helpful.
grbi|1 year ago
UI is not as good but, there is very useful tools like camping, train station, the ability to split your trip in steps ect.
perpil|1 year ago
allg12|1 year ago
kilokilosupa|1 year ago
amarcheschi|1 year ago
lmm|1 year ago
allg12|1 year ago
Not sure about the UK but I've cycled quite a lot around here in Europe (12 countries so far) and from my experience, if you don't follow the official bike trails you're missing a lot. They are usually nice scenic and quiet roads with good (asphalt) surfaces. I'm talking about trails like the Alpe Adria Cycle path. There are tons of them in mainland Europe.
But you're right - if the surface is bad, then it doesn't make sense to follow the trail. I will add a feature that will highlight the selected surface on the line (similar to what Komoot already does) so you can better investigate the route and make sure the surface is alright.
I'm also planning to add a feature where users could rate the track so you could filter out the bad tracks based on other people's reviews.
bagels|1 year ago
SonicScrub|1 year ago
TheBozzCL|1 year ago
allg12|1 year ago
hermitcrab|1 year ago
BTW Typo: 'Acitvity type' in the UI should be 'Activity type'.
mackatsol|1 year ago
Salmonfisher11|1 year ago
https://brouter.de/essbee/
Select it in in upper left menu - then fine tune the script on the right.
allg12|1 year ago
Sacco215|1 year ago
I've been bikepaking for two years now and I wish I had this tool
I've used komoot in the past but I was never satisfied with the paths it suggested and had to rely on local guides
I've checked with some of the past trips I id and it guesses correctly all of the best paths
allg12|1 year ago
ghostly_s|1 year ago
ollybee|1 year ago
qrohlf|1 year ago
May be useful to you or others in this thread. We lean pretty heavily into the "cycling power user" market segment, the feature set isn't always the most discoverable but it's quite comprehensive if you put in the up-front time to learn the tooling (similar to a lot of other specialty mapping apps out there - caltopo, fatmap (rip) etc)
Doctor_Fegg|1 year ago
qwertox|1 year ago
It's a mostly a style for OSM with hillshading applied. The Friedrich-Alexander-Universität Erlangen-Nürnberg is hosting a web-based "preview" of it at https://opentopomap.org. https://brouter.de/brouter-web and https://bikerouter.de also have it as a selectable map layer, and it can also be added to OsmAnd.
topher515|1 year ago
jMyles|1 year ago
Ideally, I'd also like to highlight roads with diverters, circles, chicanes, bumps, tables, etc.
unknown|1 year ago
[deleted]
T3RMINATED|1 year ago
[deleted]
givinguflac|1 year ago
[deleted]
allg12|1 year ago