Sobes.tech
Junior — Senior

Counting the current demand for taxis at a given point

livecode

Task condition

The task is dedicated to assessing the current demand for taxis. You need to implement the GetDemand function, which will calculate the demand level at a specified geographic coordinate. To do this, gather trip data, segmenting it into one-minute intervals, and consider only activity from the last three minutes.

// (rest of the code remains unchanged)