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
mattfrommars2 replies#
Woah, nice! I recently got interest to get into hiking and downloaded current apps for it. One of the 'business model' for current top hiking app - AllTrails - is to get offline coverage. Awesome to see an implementation of such feature here.
jameal#
Thanks! It relies heavily on open source libraries and open map tile providers.

A service worker handles caching of most of the application resources, while a Leaflet plugin[1] handles the actual tiles. You can see it in action by loading it on your phone, switching to landscape mode and pressing the save icon () that appears. It will cache everything in view, for certain zoom levels (configurable). I believe the plugin saves to session storage.
[1]: https://allartk.github.io/leaflet.offline/

therealdrag01 reply#
I’ve used and tried a lot of hiking apps. And tbh the Organic Maps (fork of maps.me) is quite good for hikes even though it’s “meant” for more urban stuff and is totally free to download huge regions of terrain, and it has good route finding along trails (crazy how all apps don’t have this even some highly rated ones.).
throwaway1777#
Also use organic maps. Works great for hikes in my experience.
kathysgeek1 reply#
Very nice. I really appreciate the simple implementation and plan to load it with some of my favorite Kentucky hikes.

I was not aware of the Knobstone trail even though I live relatively close in Lexington, KY. We'll be hitting it for some day hikes this winter.
Thanks!

jameal#
Cool! Glad to see some folks planning to give this little app legs of their own.

You will have some great views of the KT during winter for sure. FYI the stretch between Leota and Elk Creek is brutal.

la_fayette1 reply#
This is really cool! The app has all important features one needs!

Since the UI/display has a major impact on battery, it would be nice to have a dark stylesheet and map style.
Regarding location tracking in the background, this is not working inside web browsers. Even for Android native apps a lot of user actions are required in order to make background location tracking possible. Moreover google play might not approve an app, which has background location tracking [1].
[1] https://developer.android.com/training/location/background

jameal#
That would be great! I wonder if there are any dark mode tilesets for maps... not sure how that would affect legibility during the day but it would be perfect for evening at camp, for previewing the next day's hike.

Thanks for the link. It's too bad but it makes sense for privacy reasons.

everyone2 replies#
I am looking for a map app for Android atm.. Here is what I asked on r/androidapps. Maybe one of ye could recommend something?

Is there a map app that has same satellite imagery as google maps but isnt google maps?
I do a good bit of mountaineering. I use 'OSMAND' when driving to the parking spot and 'World Topo Map' when hiking on foot. One problem with world topo map is that the satellite imagery is not great, having the far superior google maps satellite imagery would really be beneficial so I could see where small trails are relative to me. Unfortunately the google maps Android app itself is unusable trash imo. Is there a good app like OSMAND or World Topo Map that uses the same satellite imagery as google maps? If it also has the option to save the data and work offline that would be very useful also. I would pay for an app that fufils those requirements np. Thanks!

tony_cannistra#
Have you given Gaia GPS a try? I think we satisfy most of your requirements. We provide Mapbox satellite imagery, which isn't the same as Google's, but it's pretty good.

I work on the maps on that app, so of course you ought to try it for yourself rather than believing me.
https://play.google.com/store/apps/details?id=com.trailbehin...

out_of_protocol#
OsmAnd can do online map tiles, custom online map tiles, caching. Also, can use SQLite map cache, which can be created by some other program, e.g. SAS.Planet

Load more comments