This repository holds code for my talk "How slow is your tram".
It consists of few components:
- Two api clients for different data sources,
MpkWrocApiClient
is more reliable Vehicles
algebra - adaptation layer to make the rest of the script independent of selected APIStatsCalculator
that uses theVehicles
to obtain and summarize the data usingfs2.Stream
main.scala
file that configures and runs the process
Make sure you have scala-cli installed.
Run scala-cli main.scala
This is just an educational project that aims to present a use case for fs2. The calculations are simplified and might not be accurate.