RideKit
Docs/Reference/Airports: permitted drivers only, and designated pickup points

Airports: permitted drivers only, and designated pickup points

Built: 2026-11-02. For the operator, and for whoever maintains the code.

At Saudi airports, only licensed apps may pick up passengers, only drivers who hold an airport permit may do the pickup, and only at the designated pickup points. RideKit's airport zones (docs/airports.md) now have two switches for this.

The two switches (Admin → Zones → an airport → Edit)

Switch What it does
Pickups only at these points A rider must choose one of the airport's named pickup points. A pin elsewhere inside the airport is refused (airport_pickup_point_required), whichever app or channel books it. Shown only when the airport has points.
Only drivers with an airport permit Pickups at this airport are offered only to drivers whose Airport permit document is approved and in date (see below).

When the permit switch is on:

  • A driver without a permit is never offered a pickup at that airport, whether they are in the airport's line or simply nearby.
  • They do not join the line when they wait in its holding area. Their app shows "No airport pickups at {airport}: pickups here need an approved airport permit. Add it in Documents."
  • Trips that only end at the airport are not affected.

The airport permit document

  • Once any active airport asks for a permit, Airport permit appears in every driver's Documents list as an optional document.
  • The driver uploads the card. The operator approves it under Drivers → KYC, like any document.
  • A permit counts when it is approved, is the current version, and has not expired. The daily document sweep marks permits expired like any other document.

Legal check needed. Confirm with the airport authority and TGA what the permit is (the TGA airport operating permit, an airport access card) and which pickup points are designated.

For developers

Piece Where
Rules geo/airport-rules.ts: pickupPointRequired (dropped when there are no points), permitRequired
Line + dispatch AirportQueueService.permittedAmong (filters DispatchService.candidatesFor), the sweep join condition, and forDriver().permitMissing
Booking RidesService.book refuses a pin drop where points are required
Document DriverDocType.AIRPORT_PERMIT (migration 125). It is offered in DriverKycService.checklist when a permit airport exists.
Apps Driver AirportQueueCard (permit missing). Rider err_airport_pickup_point_required.
Admin zones/AirportFields.tsx, zones/airport-form.ts, lib/doc-labels.ts
Tests airports/airports.spec.ts

Tested end to end with the install switched to Saudi Arabia, a test airport, and its holding area:

  • Booking:
    • a pin drop at the airport was refused with airport_pickup_point_required;
    • a booking at "T5 Arrivals · Door 3" was taken.
  • Without a permit (Android emulator):
    • the online driver in the holding area saw the "No airport pickups" card;
    • the line stayed empty;
    • the booking went straight to no drivers, though the driver was online beside it.
  • Getting a permit:
    • Airport permit appeared in the driver's Documents and was uploaded from the emulator ("Pending review");
    • it was approved in Chrome (Drivers → KYC);
    • the zone editor showed all three switches on.
  • With the permit:
    • the driver joined the line at position 1;
    • the next airport booking was offered to that driver (dispatch offeree recorded).

Not captured: the offer sheet on the emulator. adb kept dropping, because a USB device is also attached, so the offer was confirmed from the dispatch record. The location fixes in that step were posted through the driver API.

source: docs/airport-permits.md (ships identically in the product zip)