santos-sanz/bcn-bicing-api ? reverse-engineered prompt

Reverse engineered prompt

Build me a small API for the Barcelona Bicing system that gives both live station info and historical analytics. I want it to take real time Bicing data plus older Parquet files, then expose useful endpoints that show station availability, usage trends, and simple stats people can query from a browser or client.

Make it easy to run locally, include interactive API docs, and keep the code clean enough that I can extend it later with more analysis. If you need to check current library docs or best practices, look them up online. I’d like the app to return clear JSON responses, handle missing or messy data without crashing, and separate the data fetching, processing, and analytics logic in a sensible way.

If possible, also include a simple way to compare current station status with historical patterns so the API is actually useful for understanding how busy the system is.