How does it work

Note: VPS is used for taxi related orders, while cron job is use for regular orders

The cloud functions is only needed to get a more accurate list of nearby drivers for auto-assignment orders.

  1. When a taxi assign job or regular order assign job is called, the system calls the cloud function via an http request to get list of nearby drivers base on provided lat,lng, limit, range and vehicle_type_id

  2. Because the cloud function is written in js and running on google server, is faster in fetching drivers and sorting them by locations to get a more accurate list of nearby drivers using the GEOHshing mechanism.

  3. Once the function is done fetching the drivers, the list of drivers is returned to the server, for the server to continue the sending of driver notification base on list of nearby drivers returned from the cloud function call.

Last updated