The area we are interested in is bounded by a rectangle with opposite vertices with coordinates PointA
and PointB
. Since we can only find out about the nearest cars within a radius of about 3 km, we will break our map into segments of this size, and then get information about each segment and remove repetitive information.
Example of splitting Moscow into equal polygons
Taxi near Domodedovo Airport (Moscow)
Let's draw a graph of taxi drivers number from time for 24 hours from Sunday to Monday.
Dependence of taxi drivers number from time
According to yandex blog about price formation
The number of free cars available at a particular time in the area where the passenger is located is one of the main factors affecting the price of the journey.
From our data, we can see that the number of taxi bookings increases dramatically, depending on how close to the new hour it is. For instance, ordering taxi at 7.30 a.m. would cost less then at 8.00 a.m. Thus we could save up to 20-25% depending on the time!
Analysing the price throughout the day we notice that the maximum orders are at 11.00 and 19.00. During 18:50-19:15, it's even so high that yandex servers couldn't manage all requests properly as shown on the graph. The least number of cars at 4:40 a.m.