@hangtime/climbing-boards 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -0
- package/README.md +155 -0
- package/geojson/12climb.geojson +565 -0
- package/geojson/auroraboardapp.geojson +59 -0
- package/geojson/combined.geojson +94252 -0
- package/geojson/decoyboardapp.geojson +401 -0
- package/geojson/grasshopperboardapp.geojson +725 -0
- package/geojson/kilterboardapp.geojson +47703 -0
- package/geojson/moonboard.geojson +34505 -0
- package/geojson/soillboardapp.geojson +167 -0
- package/geojson/tensionboardapp2.geojson +5729 -0
- package/geojson/touchstoneboardapp.geojson +95 -0
- package/package.json +66 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
This is free and unencumbered software released into the public domain.
|
|
2
|
+
|
|
3
|
+
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
4
|
+
distribute this software, either in source code form or as a compiled
|
|
5
|
+
binary, for any purpose, commercial or non-commercial, and by any
|
|
6
|
+
means.
|
|
7
|
+
|
|
8
|
+
In jurisdictions that recognize copyright laws, the author or authors
|
|
9
|
+
of this software dedicate any and all copyright interest in the
|
|
10
|
+
software to the public domain. We make this dedication for the benefit
|
|
11
|
+
of the public at large and to the detriment of our heirs and
|
|
12
|
+
successors. We intend this dedication to be an overt act of
|
|
13
|
+
relinquishment in perpetuity of all present and future rights to this
|
|
14
|
+
software under copyright law.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
20
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
For more information, please refer to <https://unlicense.org>
|
package/README.md
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# Climbing Boards
|
|
2
|
+
|
|
3
|
+
A GeoJSON dataset tracking all climbing training/system boards worldwide,
|
|
4
|
+
including MoonBoard, Kilter Board, Tension Board, Grasshopper Board, Decoy
|
|
5
|
+
Board, So iLL Board, Touchstone Board, Aurora Board, and 12Climb Board. This
|
|
6
|
+
dataset is automatically updated daily through GitHub Actions.
|
|
7
|
+
|
|
8
|
+
[Explore all system boards on GeoJSON.io](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/combined.geojson)
|
|
9
|
+
|
|
10
|
+
[](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/combined.geojson)
|
|
11
|
+
|
|
12
|
+
## Data Sources
|
|
13
|
+
|
|
14
|
+
The repository collects data from multiple climbing board applications and
|
|
15
|
+
converts it to GeoJSON, a lightweight, open standard format that's perfect for
|
|
16
|
+
mapping applications and geographic data visualization. Explore individual
|
|
17
|
+
boards on GeoJSON.io:
|
|
18
|
+
|
|
19
|
+
- [MoonBoard](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/moonboard.geojson)
|
|
20
|
+
- [Kilter Board](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/kilterboardapp.geojson)
|
|
21
|
+
- [Tension Board](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/tensionboardapp2.geojson)
|
|
22
|
+
- [Grasshopper Board](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/grasshopperboardapp.geojson)
|
|
23
|
+
- [Decoy Board](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/decoyboardapp.geojson)
|
|
24
|
+
- [So iLL Board](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/soillboardapp.geojson)
|
|
25
|
+
- [Touchstone Board](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/touchstoneboardapp.geojson)
|
|
26
|
+
- [Aurora Board](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/auroraboardapp.geojson)
|
|
27
|
+
- [12Climb Board](https://geojson.io/#id=github:Stevie-Ray/hangtime-climbing-boards/blob/main/geojson/12climb.geojson)
|
|
28
|
+
|
|
29
|
+
## Data Structure
|
|
30
|
+
|
|
31
|
+
The `/data` directory contains:
|
|
32
|
+
|
|
33
|
+
- Raw JSON location data from each source
|
|
34
|
+
- Scraped data from various Aurora Climbing API endpoints
|
|
35
|
+
|
|
36
|
+
The `/geojson` directory contains:
|
|
37
|
+
|
|
38
|
+
- Individual GeoJSON files for each climbing board type
|
|
39
|
+
- A combined GeoJSON file with all locations
|
|
40
|
+
|
|
41
|
+
The `/api` directory contains:
|
|
42
|
+
|
|
43
|
+
- API client implementations for each climbing board service
|
|
44
|
+
- Authentication and data fetching logic
|
|
45
|
+
|
|
46
|
+
The `/interfaces` directory contains:
|
|
47
|
+
|
|
48
|
+
- TypeScript type definitions and interfaces
|
|
49
|
+
- Data model specifications for the application
|
|
50
|
+
|
|
51
|
+
The `/models` directory contains:
|
|
52
|
+
|
|
53
|
+
- Client models for API interactions and data handling
|
|
54
|
+
- Data transformation and validation models
|
|
55
|
+
|
|
56
|
+
## Automation
|
|
57
|
+
|
|
58
|
+
This repository uses GitHub Actions to:
|
|
59
|
+
|
|
60
|
+
- Scrape the latest location data daily
|
|
61
|
+
- Convert the data to GeoJSON format
|
|
62
|
+
- Combine all sources into a single GeoJSON file
|
|
63
|
+
- Automatically commit, push and publish updates
|
|
64
|
+
|
|
65
|
+
## Development
|
|
66
|
+
|
|
67
|
+
### Prerequisites
|
|
68
|
+
|
|
69
|
+
- Node.js 22 / Deno / Bun
|
|
70
|
+
|
|
71
|
+
### Available Scripts
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Install dependencies
|
|
75
|
+
npm ci
|
|
76
|
+
|
|
77
|
+
# Scrape data from board APIs
|
|
78
|
+
npm run scrape
|
|
79
|
+
|
|
80
|
+
# Convert scraped data to GeoJSON
|
|
81
|
+
npm run convert
|
|
82
|
+
|
|
83
|
+
# Combine all GeoJSON files
|
|
84
|
+
npm run combine
|
|
85
|
+
|
|
86
|
+
# Run the complete build process
|
|
87
|
+
npm run build
|
|
88
|
+
|
|
89
|
+
# Watch for TypeScript changes during development
|
|
90
|
+
npm run dev
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Authentication
|
|
94
|
+
|
|
95
|
+
Required to get MoonBoard and Kilter Board locations. To get detailed
|
|
96
|
+
information about Aurora Boards such as (Tension, Grasshoper etc.) including the
|
|
97
|
+
gym's address, board angle, or rotatability status, you need to provide your
|
|
98
|
+
credentials through environment variables. Each climbing board app requires its
|
|
99
|
+
own set of login credentials. The scraper will only fetch additional details for
|
|
100
|
+
the specific apps where you provide valid login details.
|
|
101
|
+
|
|
102
|
+
**Important Legal Notice**: Before using this scraper with credentials, you
|
|
103
|
+
must:
|
|
104
|
+
|
|
105
|
+
1. Have a valid account and have explicitly accepted the Terms of Use for each
|
|
106
|
+
platform.
|
|
107
|
+
2. Ensure your use of this tool complies with the platform's terms of service
|
|
108
|
+
3. Be aware that this tool makes authenticated API requests to these services
|
|
109
|
+
|
|
110
|
+
**Setup Instructions**:
|
|
111
|
+
|
|
112
|
+
1. Copy the `.env.example` file to `.env`:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
cp .env.example .env
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
2. Fill in your credentials in the `.env` file:
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Aurora Climbing Boards (Tension, Grasshoper etc.)
|
|
122
|
+
TENSIONBOARDAPP_USERNAME=your_username
|
|
123
|
+
TENSIONBOARDAPP_PASSWORD=your_password
|
|
124
|
+
|
|
125
|
+
# Kilter Boards (requires authentication for location data)
|
|
126
|
+
KILTERBOARDAPP_USERNAME=your_username
|
|
127
|
+
KILTERBOARDAPP_PASSWORD=your_password
|
|
128
|
+
|
|
129
|
+
# MoonBoard (requires authentication for location data)
|
|
130
|
+
MOONBOARD_USERNAME=your_username
|
|
131
|
+
MOONBOARD_PASSWORD=your_password
|
|
132
|
+
|
|
133
|
+
# Add credentials for other boards as needed
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**API Usage Safeguards**: The scraper includes built-in protections:
|
|
137
|
+
|
|
138
|
+
- Rate limiting (30 requests per minute per board)
|
|
139
|
+
- Automatic request throttling
|
|
140
|
+
- Retry mechanism with exponential backoff for rate limit errors
|
|
141
|
+
- High usage warnings (triggers at 80% of rate limit)
|
|
142
|
+
- Error handling for authentication and API issues
|
|
143
|
+
|
|
144
|
+
**Note**: While the scraper implements rate limiting and other safeguards, you
|
|
145
|
+
are still responsible for ensuring your usage complies with each service's terms
|
|
146
|
+
of use.
|
|
147
|
+
|
|
148
|
+
## Credits
|
|
149
|
+
|
|
150
|
+
Forked from
|
|
151
|
+
[Georift/climbing-board-locations](https://github.com/Georift/climbing-board-locations)
|
|
152
|
+
|
|
153
|
+
## License
|
|
154
|
+
|
|
155
|
+
Unlicense
|