Comments (3)
Thanks for the ideas! Both are possible but non-trivial.
Filter by number of hand holds
This requires parsing the frame string to find the roles of each hold, and then counting the number of placements that have a role designated for hands. This would likely have to be done in Python instead of the SQLite query, so it will probably be a bit slower, but I'd imagine it should still be performant enough, especially on smaller queries.
Filter by hand hold distance
This would be on top of the previous (first identify all of the hand holds), then map the placements to the x y coordinates of the board (holes
table), then some algorithm to score overall "distance" - maybe something like finding the min distance between each point and every other point, and then summing that min distance for each point. It would be interesting to see if an algorithm like that actually captures the spirit of the filter, given that you do not always move between the closest hand holds in a climb.
from climbdex.
I am not very familiar with SQLite but it seems like something like this would work for the number of hand holds?
SELECT frames, (length(frames) - length(replace(frames, 'r13', ''))) / 3 AS holdCount FROM climbs WHERE holdCount BETWEEN 5 and 10
from climbdex.
Filtering on hold count has been deployed. Leaving the issue open for the the idea of filtering on distance.
from climbdex.
Related Issues (20)
- Swipe gestures making pinch zooming difficult HOT 1
- Uneven icon spacing on climb card HOT 2
- Show personal climb history/stats below climb HOT 12
- Hold filter enhancement: match all hand types HOT 3
- Filter climbs by hand set
- Min/max grade set to undefined after returning to filter selection HOT 2
- Show error message on API error HOT 4
- Share Climbs HOT 4
- Cleanup params in back link when not using history.back()
- Better filter bookmarking/sharing HOT 1
- Login Modal is not closing completely
- Showing ALL instagram beta videos instead of only the "approved" ones HOT 3
- Setting problems on the kilter board HOT 1
- Bluetooth Party Mode HOT 10
- Display error when cookies are disabled and login is attempted
- Change background color in results and add tick icon after logging a climb
- Log Timestamp HOT 6
- Some instagram beta embed issue? HOT 1
- TB1 Bluetooth not connecting? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from climbdex.