Show HN: I made an offline-ready hiking trail companion app (opens in a new tab)github.com
475 pointsHi 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 commentsHave 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
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
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.
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.
All comments shown.
Couldn't load more comments. Check your connection and try again.