ridi-bike/ridi-router ? reverse-engineered prompt

Reverse engineered prompt

Build me a Rust CLI tool that generates motorcycle routes from OpenStreetMap data.

I want to give it a map file, either OSM PBF or JSON, then choose either a start and finish point or a round trip from one start point with a bearing and target distance. It should explore roads and tracks using a custom rule file so I can prefer the kinds of roads and surfaces I like, and avoid things like private roads, pavement, or other stuff I do not want.

Please make it able to output the routes as GPX and JSON, and let me print results to the terminal too. It would be great if it can calculate route stats like distance on different road and surface types, plus some kind of interestingness score for twisty roads versus straight ones.

If it makes sense, add caching for big map files so repeated runs start faster. Please include a few example rule files and make the CLI feel straightforward to use. If you need current docs or format details, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab