Giter Site home page Giter Site logo

Comments (6)

kylecorry31 avatar kylecorry31 commented on August 15, 2024 2

The algorithm I've landed on is based on the rating system described here: https://www.smcgov.org/parks/county-hiking-trail-difficulty-rating-system

It tries to quantify what that system describes.

Easy:

  • Less than 2 miles long
  • Maximum slope is under 15 percent
  • Gain and loss are under 250ft

Moderate:

  • Between 2 and 4 miles long
  • Maximum slope is between 15 and 25 percent
  • Gain or loss (whichever is greater) is between 250ft and 750ft

Hard:

  • Over 4 miles long
  • Maximum slope is over 25 percent
  • Gain or loss (whichever is greater) is over 750ft

It will check for hard conditions first, then moderate, and finally easy.

This should rate trails harder if they have a steep section even if the whole trail is pretty flat - which was the biggest complaint of the SNP rating.

from trail-sense.

kylecorry31 avatar kylecorry31 commented on August 15, 2024 1

Thanks - the SNP score does have a numeric rating that I could display (maybe upon clicking the rating), but it will get tricky after I apply the second step that factors in slope during the path (unless I use an off the shelf rating system)

from trail-sense.

michaelblyons avatar michaelblyons commented on August 15, 2024

I once took a baby (strapped on) and two young children (walking) on a hike that SNP rates "Easy." It was not a great experience for them.

Based on that, I would encourage you to show the "points" [score] of the hike next to the label, and click to see the chart for context.

from trail-sense.

kylecorry31 avatar kylecorry31 commented on August 15, 2024

@michaelblyons yeah, I'm surprised on how popular that rating metric is now that I'm getting some feedback on it. Most of the hikes I do are either actually easy (local to my town) or hard (mountains) - and I would agree with the SNP ratings on all of them.

Can you clarify what you would like me to show for the points?

For reference, if you switch to the slope point style (right most dropdown above the path map - defaults to None), it color codes the points based on slope. The elevation chart will also color code by slope (always enabled - assuming there's elevation data on the path).

from trail-sense.

michaelblyons avatar michaelblyons commented on August 15, 2024

By points, I just mean the numeric score before it's translated into labels. I was not referring to lat/long points.

Edit: Maybe I misunderstood how the feature works. Please feel free to disregard.

from trail-sense.

kylecorry31 avatar kylecorry31 commented on August 15, 2024

My initial take at a custom algorithm will be in tonight's nightly build

from trail-sense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.