Add processJourney method to StationService which calculates
-average journey distance taken from that station
-shows longest distance taken from that station
-shows total number of journeys taken from that station.
Investigate which would be the best way of to show most popular station.
Edit: do this with Mongo aggregation pipeline if possible.
Add processJourney method to StationService which calculates -average journey distance taken from that station -shows longest distance taken from that station -shows total number of journeys taken from that station. Investigate which would be the best way of to show most popular station.
Edit: do this with Mongo aggregation pipeline if possible.