Backup Zones
Taxi & Private Hire › Products › Dispatch › Backup Zones
Generally available
When a primary zone has no driver supply, dispatch can fall back to a BackupZoneGroup — an ordered list of feeder zones plus a fallback dispatch mode. Each group is anchored to a feeder zone with a priority; rules (see BackupZoneGroupRule) decide which trips qualify. Lets operators configure city-wide failover patterns ("if Zone A is empty, try Zone B then Zone C with relaxed rules") without writing custom code.
Example request
POST /client/{clientId}/backupzonegroup
{
"feederZone": {
"id": "<id>"
},
"defaultDispatchMode": "NONE",
"priority": 0,
"zones": [
{
"id": "<id>"
}
],
"rules": [
{
"id": "<id>"
}
]
}
Example shape, derived from the BackupZoneGroup fields — indicative,
not the authoritative schema (that arrives with the API reference).
Endpoints
| Method | Path | |
|---|---|---|
POST | /client/{clientId}/backupzonegroup/{backupZoneGroupId}/zone/{zoneId} | |
POST | /client/{clientId}/backupzonegroup · primary | |
DELETE | /client/{clientId}/backupzonegroup/{backupZoneGroupId} | |
GET | /client/{clientId}/backupzonegroup/{backupZoneGroupId} | |
DELETE | /client/{clientId}/backupzonegroup/{backupZoneGroupId}/zone/{zoneId} | |
POST | /client/{clientId}/backupzonegroup/rule/{ruleId}/tripprofile/{tripProfileId} | |
POST | /client/{clientId}/backupzonegroup/{backupZoneGroupId}/rule | |
DELETE | /client/{clientId}/backupzonegroup/{backupZoneGroupId}/rule/{ruleId} | |
DELETE | /client/{clientId}/backupzonegroup/rule/{ruleId}/tripprofile/{tripProfileId} | |
POST | /client/{clientId}/backupzonegroup/{backupZoneGroupId}/rule/{ruleId} | |
POST | /client/{clientId}/backupzonegroup/{backupZoneGroupId} | |
POST | /client/{clientId}/backupzonegrouprule/{ruleId}/tripprofile/{tripProfileId} | |
POST | /client/{clientId}/backupzonegrouprule | |
POST | /client/{clientId}/backupzonegrouprule/{ruleId}/decrease-priority | |
DELETE | /client/{clientId}/backupzonegrouprule/{ruleId} | |
DELETE | /client/{clientId}/backupzonegrouprule/{ruleId}/tripprofile/{tripProfileId} | |
GET | /client/{clientId}/backupzonegrouprule/{ruleId} | |
POST | /client/{clientId}/backupzonegrouprule/{ruleId}/increase-priority | |
POST | /client/{clientId}/backupzonegrouprule/{ruleId} |
Full request/response schemas and an interactive explorer will live in the API reference (coming soon).
Use cases
Operator flows that exercise this feature.
config risk: medium
Create a backup-zone group and add fallback zones for when the primary empties.
POST/client/{clientId}/backupzonegroupPOST/client/{clientId}/backupzonegroup/{backupZoneGroupId}/zone/{zoneId}
config risk: low
Raise a backup-zone rule priority to change the fallback search order.
POST/client/{clientId}/backupzonegrouprule/{ruleId}/increase-priority
Related
Fields
| Field | Type | Description |
|---|---|---|
feederZone | Zone | Primary zone that delegates dispatch to this backup group when supply runs out locally. The group lives "off" this feeder zone — different feeder zones can have different backup configurations. |
defaultDispatchMode | DispatchMode · NONE | PROXIMITY | PROXIMITY_FAIRNESS | QUEUE | Fallback dispatch behaviour used when no rule matches: QUEUE (queue position decides), PROXIMITY (nearest available driver), or IMMEDIATE (assign instantly to any eligible). Default QUEUE — the most common configuration. |
priority | smallint | Ordering within the feeder zone — lower priority runs first. Lets operators stack multiple backup groups against one feeder zone ("try suburb backup first, then airport overflow"). |
zones | Collection | Pool of fallback zones — when the feeder zone exhausts supply, dispatch picks the next available transporter from any of these. |
rules | Collection | Per-priority rules that override defaultDispatchMode for matching trip profiles. Evaluated in priority order; first match wins. Empty list = always use defaultDispatchMode. |
clientId | bigint | Tenant scope. Every tenant-aware entity carries this; `ClientFilter` enforces row-level isolation on read; the multi-tenancy routing layer (`/client/{clientId}`) sets it at create time. Surfaced only under `admin` / `tripLog` groups — never to end users. |
internalKey | string | Optional client-supplied external reference / idempotency key. When present, lets external systems correlate platform-side records back to their own source-of-truth ids. Not persisted to a column — populated by the request handler when the caller sets it. |
__objectType | string | Discriminator string (entity class short-name) emitted alongside the id in serialized output. Resolved at read time by `getObjectType()`; lets the FE dispatch entity-specific rendering without inspecting the URL. |
id | bigint | Snowflake-style primary key (unsigned BIGINT). Generated by `IdFactory` at create time; surfaced to the FE / API as a `G`-prefixed string and stripped back to plain bigint server-side before Doctrine lookup. |
createdDate | integer | Unix timestamp the row was first persisted. Set in the entity's PrePersist hook; never rewritten on subsequent updates. |
updatedDate | integer | Unix timestamp the row was last touched. Bumped on every commit that hits the Doctrine UoW for this entity; drives FE invalidation + the listing change cursor. |
passiveUpdatedDate | int | Read-through alias for `updatedDate` exposed under different serializer groups. Lets the FE distinguish "real edit" from "background touch" projections without changing the underlying column. |
listingUpdatedDate | int | Listing-projection timestamp surfaced only under the `listMode` group. Driven by `TripCache` and other listing-shape refreshers separately from `updatedDate` so a listing rebuild doesn't trigger detail-page invalidation. |