{"id":17254282,"url":"https://github.com/waynevanson/elevated-cycling","last_synced_at":"2025-03-26T07:40:55.314Z","repository":{"id":219731883,"uuid":"744349953","full_name":"waynevanson/elevated-cycling","owner":"waynevanson","description":"A service that can find the ideal cycling circuit for downhil descent","archived":false,"fork":false,"pushed_at":"2024-12-22T05:42:25.000Z","size":6484562,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T19:46:21.305Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waynevanson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-17T05:42:41.000Z","updated_at":"2024-12-22T05:42:28.000Z","dependencies_parsed_at":"2024-11-15T07:26:32.438Z","dependency_job_id":"3abd2045-79e1-468c-80f2-5fda5a6618a7","html_url":"https://github.com/waynevanson/elevated-cycling","commit_stats":null,"previous_names":["waynevanson/elevated-cycling"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Felevated-cycling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Felevated-cycling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Felevated-cycling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waynevanson%2Felevated-cycling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waynevanson","download_url":"https://codeload.github.com/waynevanson/elevated-cycling/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245615000,"owners_count":20644375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T07:08:12.803Z","updated_at":"2025-03-26T07:40:55.288Z","avatar_url":"https://github.com/waynevanson.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elevated Cycling API\n\nYou provide a coordinate and a radius to search, and receive the sickest down hill circuit of your life.\n\n# Crates\n\n| Name        | Description                                                                          |\n| :---------- | :----------------------------------------------------------------------------------- |\n| `bootstrap` | Gets all the data we can buffered into memory, calling API's and saving to postgres. |\n| `server`    | Contains and API to be consumed and webpages.                                        |\n| `traits`    | Utility traits useful for this repository.                                           |\n\n# Usage\n\nWork in progress, this doesn't work very well.\n\n- Still needs a webpage for [MapBBCode](http://mapbbcode.org/) to give.\n- An algorithm that isn't trash.\n\nThis should give you a circuit if you have 2 entry points to your street, otherwise it'll probably fail at the moment.\n\n## Self Hosted\n\nCurrenlty run as a dev environment with file watching servers because I don't plan to deploy this into the cloud\n(unless I want to lose all my money).\n\n1. Install and setup prerequisites\n   - docker ^24.1.7\n   - docker-compose ^2.23.3\n2. Clone repository locally.\n3. From the root of the repository, run the `docker-compose up`.\n4. Run the following command, subsituting values in the body with your parameters:\n\nRadius is in KM.\n\n```sh\ncurl --request=GET --header='ContentType: application/json' http://localhost:3000/api/circuit/downhill \\\n--data='{ \"longitude\": 0.0, \"latitude\": 0.0, \"radius\": 0.5}'\n```\n\n# CDN\n\nThe URL generated is a static webpage, meaning that you can use it however you like.\n\n\u003c!-- TODO - Version control this file --\u003e\n\nhttps://cdn.jsdelivr.net/gh/user/waynevanson/public/map\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynevanson%2Felevated-cycling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaynevanson%2Felevated-cycling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaynevanson%2Felevated-cycling/lists"}