Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waynevanson/elevated-cycling
A service that can find the ideal cycling circuit for downhil descent
https://github.com/waynevanson/elevated-cycling
Last synced: about 1 month ago
JSON representation
A service that can find the ideal cycling circuit for downhil descent
- Host: GitHub
- URL: https://github.com/waynevanson/elevated-cycling
- Owner: waynevanson
- Created: 2024-01-17T05:42:41.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-21T22:08:33.000Z (about 1 month ago)
- Last Synced: 2024-11-30T16:41:44.725Z (about 1 month ago)
- Language: Rust
- Size: 6.04 GB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elevated Cycling API
You provide a coordinate and a radius to search, and receive the sickest down hill circuit of your life.
# Usage
Work in progress, this doesn't work very well.
- Still needs a webpage for [MapBBCode](http://mapbbcode.org/) to give.
- An algorithm that isn't trash.This should give you a circuit if you have 2 entry points to your street, otherwise it'll probably fail at the moment.
## Self Hosted
Currenlty run as a dev environment with file watching servers because I don't plan to deploy this into the cloud
(unless I want to lose all my money).1. Install and setup prerequisites
- docker ^24.1.7
- docker-compose ^2.23.3
2. Clone repository locally.
3. From the root of the repository, run the `docker-compose up`.
4. Run the following command, subsituting values in the body with your parameters:Radius is in KM.
```sh
curl --request=GET --header='ContentType: application/json' http://localhost:3000/api/circuit/downhill \
--data='{ "longitude": 0.0, "latitude": 0.0, "radius": 0.5}'
```# CDN
The URL generated is a static webpage, meaning that you can use it however you like.
https://cdn.jsdelivr.net/gh/user/waynevanson/public/map