Live data from Hacker News

Show HN: Bike route planner that follows almost only official bike trails

trailimap.com

121–130 of 156 posts

Re: Show HN: Bike route planner that follows almost only official bike trails

#121
post #111

Earlier quoted context omitted.

So far, I've only generated the graph for Europe(using Graphhopper). Even just Europe required 128GB of RAM and around 10 hours of computation time (the entire planet would likely need 384GB of RAM). I plan to add North America on a separate Docker container soon though. I started with Europe because I’m familiar with some of the bike trails here, which makes it easier for me to check if the routing makes sense.

> the entire planet would likely need 384GB of RAM Unlikely. Even with turn costs enabled 256GB (or less) are sufficient. You could also try to disable CH as for bike often no long routes are required (you could disable them). Here we have written down a few more details: https://www.graphhopper.com/blog/2022/06/27/host-your-own-wo...

Hey karussell, I really appreciate all the hard work you’ve put into Graphhopper. I wouldn't be able to create this project without GH. I have a question about memory usage during the import stage (specifically in the OSM Reader's preprocessRelations function). I'm using a HashMap> to map way IDs to OSM bike route relation IDs, which means allocating lots of arrays. Could this be causing me to run out of heap memory faster or am I off base here?

I thought I would be able to compute the graph with 64GB of ram but it kept crushing before CH and LM stage. After switching to a 128GB instance, it finally worked, hitting around 90GB at peak memory usage. For context, I was using 3 profiles - one with CH and two with LM, plus elevation data and used all of the tips from deploy.md

Re: Show HN: Bike route planner that follows almost only official bike trails

#122
post #114
post #111

Earlier quoted context omitted.

So far, I've only generated the graph for Europe(using Graphhopper). Even just Europe required 128GB of RAM and around 10 hours of computation time (the entire planet would likely need 384GB of RAM). I plan to add North America on a separate Docker container soon though. I started with Europe because I’m familiar with some of the bike trails here, which makes it easier for me to check if the routing makes sense.

You should at least add some kind of error handling so I'm not sitting there like a dope clicking over and over with no result.

Apologies, just added a popup with region availability info

Re: Show HN: Bike route planner that follows almost only official bike trails

#123
Would love to see this for the SF Bay Area - lots of great cycling around here and I'm unsatisfied with using Strava to create routes!

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)

Re: Show HN: Bike route planner that follows almost only official bike trails

#125

Would love to see this for the SF Bay Area - lots of great cycling around here and I'm unsatisfied with using Strava to create routes! 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…

It feels like the approach OP is taking won’t be able to take this short cut into account.

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.

Re: Show HN: Bike route planner that follows almost only official bike trails

#126

Would love to see this for the SF Bay Area - lots of great cycling around here and I'm unsatisfied with using Strava to create routes! 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…

Which parking lot? I ride the bridge a ton from the Presidio to travel up to Marin!

Re: Show HN: Bike route planner that follows almost only official bike trails

#127
post #126

Would love to see this for the SF Bay Area - lots of great cycling around here and I'm unsatisfied with using Strava to create routes! 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…

Which parking lot? I ride the bridge a ton from the Presidio to travel up to Marin!

It's the parking lot near Lincoln Blvd and Merchant Rd. If you come from Chrissy field, you wouldn't cut thru it, but my route is Arguello -> Washington -> Lincoln then through the parking lot onto the path by the battery onto the bridge

Re: Show HN: Bike route planner that follows almost only official bike trails

#128
post #121

Earlier quoted context omitted.

> the entire planet would likely need 384GB of RAM Unlikely. Even with turn costs enabled 256GB (or less) are sufficient. You could also try to disable CH as for bike often no long routes are required (you could disable them). Here we have written down a few more details: https://www.graphhopper.com/blog/2022/06/27/host-your-own-wo...

Hey karussell, I really appreciate all the hard work you’ve put into Graphhopper. I wouldn't be able to create this project without GH. I have a question about memory usage during the import stage (specifically in the OSM Reader's preprocessRelations function). I'm using a HashMap > to map way IDs to OSM bike route relation IDs, which means allocating lots of arrays. Could this be causing me to run out of heap memory…

> Could this be causing me to run out of heap memory faster

Yes, definitely.

> I thought I would be able to compute the graph with 64GB of ram but it kept crushing before CH and LM stage.

For normal GraphHopper and just the EU the 64GB should be more than sufficient.

Re: Show HN: Bike route planner that follows almost only official bike trails

#129
post #113

Earlier quoted context omitted.

It’s nice to see so many founders here. I run travelmap.net and I can also help out with self-hosting custom map tiles or tracing itineraries on Mapbox/Maplibre maps.

Thank you, appreciate it! Travelmap looks awesome—I love the idea. I will definitely try it out on my next trip. This morning, I picked up an affordable m920q with 64GB of RAM and I’m planning to use it for hosting GH and maybe vector tiles too. If I run into any issues I can’t figure out quickly I’ll reach out but I don’t want to bug you with basic questions.

Nowadays the cheapest way to self-host planet vector tiles is probably to use protomaps.com and throw the .pmtiles file on a S3 bucket (AWS, Cloudflare, etc.).

Re: Show HN: Bike route planner that follows almost only official bike trails

#130
If only Berlin cobblestone was mapped as "cobblestone" not "sett" on open streetmaps -_-

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)

Post reply on HN