Lurker News
Hi HN! This is a trail companion web app (think AllTrails) I hacked together in a couple weeks time. I was inspired to create this project while training for an extended backpacking trip. My motivation was to create a UI tailored exactly to my liking, and to be able to track my progress along the trail without draining my battery. I also wanted to experiment with PWA technologies.

I successfully used it on my five day adventure along the Knobstone Trail in southern Indiana, and even though it's web-based it hardly consumed any battery life on my old first-gen Pixel XL.
It's set up currently to support a single trail, where the trail and trail markers are deployed with the rest of the app. So it's single-use in that way. For future trips, I can simply swap out the GPX files and deploy.
I am releasing it with an open source license in case anyone wants to use it as a boilerplate to create their own.

Comments (141) 39 threads

Earlier comments
Eumenes1 reply#
Nice project, sleek UI and performant. Didn't realize Indiana had hills like that!
jameal1 reply#
Thanks! Yep the southern end has some good hills. I think even many people who grew up here aren't aware of this trail but it is a good one with some beautiful views. It's part of a larger 160 mile trail system that many people in the region use to train for the Appalachian Trail.
kingsloi1 reply#
Awesome work fellow Indianian! The northern end has some good hills too, albeit made of sand... but does have some beautiful views, too! A lot of people in NWI/Chicagoland don't know Gary has National Park access, beaches, trails, etc. Indiana's more than just corn (but it also is just a lot of corn)
jameal#
Thanks! I've been to the dunes a couple times but I'd definitely like to explore more up there. By the way, how the heck did you end up in Gary from Britain?
folli1 reply#
Very nice work! Sleek interface. I'll need to field test it soon ;)

Have you by any chance also evaluated MapLibre (https://maplibre.org/) as an alternative to Leaflet. I'm just wondering if anyone has any insights on how they compare. I use MapLibre for one of my side-projects [1].
What are you using as source for height data (I see the curve colors represent the altitude). I've noticed that one of the most commonly used datasets [SRTM](https://lpdaac.usgs.gov/products/srtmgl1v003/) has some deviation compared to OSM data in high latitudes. E.g. some peak locations from OSM don't match to the contour lines from SRTM. But I have never found any further infos about this.
[1] https://cubetrek.com

jameal#
I haven't tried MapLibre. I'm learning that there are lots of alternatives to Google Maps and Mapbox which I love to see.

I learned of Leaflet through GPS Visualizer[1]. It's an excellent resource. They also have a tool that will augment your GPX file with elevation data[2], though I'm not sure what source they use. According to their site:
> Complete copies of the SRTM3 and USGS NED databases, as well as a large number of SRTM1 and ASTER tiles, are stored on GPS Visualizer's server`
One thing I learned through this project is that elevation and distance data are all over the place depending on what source you're pulling from.
[1]: https://gpsvisualizer.com/ [2]: https://www.gpsvisualizer.com/elevation

johndhi1 reply#
As a non technical person, can I download and use the app? How?
jameal#
Yes but keep in mind the trail that's loaded is baked into the app. You can't select from a list of trails or anything like that. This is more of a boilerplate for other people to customize. But maybe someone will fork and add that kind of functionality.

That being said, it's a web app which means it runs in your browser. Follow the link at the top of the README ("Try it out here").
If you're on Android, open your browser menu and look for a menu item that reads `Install` and tap that to add the icon to your homescreen. Now you can use it as a standalone fullscreen app.
If you're on iOS Safari, you can follow the same instructions but install of `Install` it's something like `Add to Home Screen`. Unfortunately Apple doesn't support all the same features because they want to incentivize people using their app store.

screye#
This is really good.

I am personally a big fan of Alltrails and their pro-subscription (with offline maps), but it is huge achievement to string this together in a couple of weeks.

Load more comments