The largest city has 50,000 drivers online at its peak. To find those within 3 km of a rider, you could compute the distance to each of them. That is 50,000 computations for every search, though only a few hundred of the drivers matter.
In this lesson
- A grid worked by hand
- Geohash
- H3 hexagons
- The cost of the choice
- Common mistake
- Key points