Overview
Design the location tracking and dispatching engine that matches each rider with the nearest available driver.
Requirements
- 01Have drivers broadcast GPS coordinates every 3 to 5 seconds
- 02Let riders query nearby drivers within a radius in under a second
- 03Match each request to the best nearby driver and handle the accept and reject
- 04Set surge pricing from live supply and demand in each area
- 05Recover driver location state after a node fails
Concepts in play
GeospatialH3/S2WebSocketsKafkaState Machine