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
wingworks1 reply#
Pretty cool, though I'd just want an app that shows hiking/walking tracks, even when zoomed out. OSM has such a great db of tracks, but trying to discover them is near impossible unless you know they're there. (you gotta zoom in so far, as soon as you try to get an overview the tracks disappear)
Aachen1 reply#
> [but] you gotta zoom in so far

If you'd share which software you're using, I can maybe suggest a solution. For the most common ones, the .org website and OsmAnd the Android app:
- on osm.org you can click on layers on the right and select a different presentation. OSM is a database, not a software package. The available presets are a few demos basically, there are a thousand websites out there with their own style or you could make your own (easiest might be via a commercial provider like mapbox, I'm not sure).
- OsmAnd: click on the mode you want to change, by default in browsing mode that's the world icon on the top left, scroll to the bottom section (translated from my German translation, it should be called Map Display Mode or so), and you can choose for e.g. UniRS whose help text (see top of screen after selecting) mentions it's for pedestrians and cyclists. In the same menu, I can also recommend Details->Show More Details, at least for browsing mode (in car navigation mode it might be less nice). One section above, you can also turn on walking routes, running routes, cycling routes, horse riding routes, etc. For regular use, you might want to enable that for a secondary profile though, as the screen usually is overwhelmed with even one of these sets of routes.

wingworks#
Hmm, the cycle map on osm.org is pretty much what I'm after, but for walking tracks. I do love mapbox's map style, and had a play with it to get the walk tracks to show at all zoom level, but only really got them to be red (and some black at higher zoom levels) https://api.mapbox.com/styles/v1/adriel/cite19m62004l2ip1xk6...

I usually use maps.me, (and sometimes outdooractive, they have a walking layer, it's under paid plan, and even when I tried the paid, there walking layer didn't appear to do anything.)
Thanks for the OsmAnd tips, and that does help a bit, the tracks stick around a little longer when zooming out, but not nearly long enough if I'm zoomed out to the 2km+ levels, they just disappear.
I'm not really stuck to one app (or even mobile, computer or web based app would be fine too), if there is something out there that does it better I'll switch, though I won't pay much for it, I don't use it often enough. Unless it's a one time payment.
Appreciate the tips, thank you.

aeharding1 reply#
Nice. I wish there was some web API to record geolocation in the background over time. I understand the privacy implications, but if it was an API only available to installed PWAs, and with an indicator similar to native apps when recording geolocation in the background, I feel like that would be acceptable.
jameal1 reply#
Is this not possible with a service worker? That's too bad. I haven't thought much about the privacy implication but I figure if you go through the trouble of installing a PWA and granting it access to your location then why not? What you suggested seems like a good route.
mradek1 reply#
That’s so cool!

Hey if you don’t mind since you built it, what are the advantages of PWA vs native/flutter mobile app? I’ve been messing with SwiftUI/Kotlin and recently switched to flutter earlier this year.
Thanks and congrats !

jameal1 reply#
Thanks! I've only used React Native so I'm not sure. I can say that with a PWA you're dealing with the overhead of the web browser. That has its tradeoffs. For simple UIs a PWA is a great option. When you have more complex UIs or need access to APIs that aren't available on the web then native is probably a better route. Performance is probably always going to be better on native too.
mradek#
Thank you!
jonah#
Nice!

We use CalTopo.com (Works everywhere, not just California) and GaiaGPS.com for offline mapping and track recording. Both allow offline use after downloading map tiles.
CalTopo allows you to add lines and markers and polygons to your map beforehand in the web app or in the field on the mobile app. It does have a number of analysis features, but it's not as multi-day-hiking-specific.)

Load more comments