Saudi short addresses (National Address)
Built: 2026-11-02. Written for operators and for whoever maintains the code.
Every building registered with Saudi Post (SPL) has a National Address and,
with it, a short address: four letters and four digits, such as
RRRD2929. People hand it out the way others give a postcode, and couriers
ask for it. With this feature a rider or a parcel sender types those eight
characters in the address search instead of hunting for a pin.
Setting it up
- SPL API access. Subscribe to the National Address API on SPL's
developer portal (api.address.gov.sa). Then go to Admin → Providers →
Saudi National Address — short address lookup (SPL) and enter:
- Base URL of the National Address API, from your subscription;
- API key (sent as
api_key); - Path of the by-short-address operation, if it differs from the
default
/Address/address-by-short-address.
- The market switch. Admin → Markets → Saudi Arabia → Pricing → Saudi National Address short addresses. On by default in Saudi Arabia, off elsewhere.
The request RideKit sends is:
GET {baseUrl}{path}?shortaddress=RRRD2929&language=E|A&format=JSON&encode=utf8
api_key: {apiKey} (also as the api_key query parameter)
It reads Addresses[0] with BuildingNumber, Street, District, City,
PostCode, AdditionalNumber, and the point from Latitude/Longitude or
ObjLatLng ("lat lng"). A point outside the Kingdom is refused. This was
built against SPL's published description and tested against a local
stand-in. Check it against your real subscription before launch. If your
response differs, the reading lives in backend/src/geo/short-address.ts
(parseNationalAddress).
What happens
- Search. In the rider app's address search (rides, stops, rentals,
intercity, saved places, parcels), typing something shaped like a short
address looks it up. Spaces, dashes, lower case and Arabic digits are all
accepted (
rrrd 2929,RRRD-٢٩٢٩). A found address shows first, with a tag icon: "RRRD2929 · National Address · 2929 King Fahd Road, Al Olaya, Riyadh 12214". The address comes back in Arabic for an Arabic app.- Not known to SPL: "No place has the short address ABCD1234. Check it, or search by name."
- SPL not set up or not answering: "Short addresses can't be looked up right now. Search by name instead." Normal search still works.
- The place's label starts with the code ("RRRD2929 · 2929 King Fahd Road, …"), so it reaches the confirm screen, the booking, the driver's offer and trip screen, the receipt and the admin trip page.
- Rides keep it.
rides.pickup_short_addressandrides.dropoff_short_addressare read off the front of the address by the database, however the ride was booked. - Parcels. The parcel screen tells senders they can type the receiver's short address in the address search.
- Cache. Answers are kept in
short_addressesper language: found codes for 30 days, unknown codes for 1 day. A code is never looked up on every keystroke. Lookups are limited to 60 a minute per user.
Not built
- No lookup by coordinates (the short address of the rider's current position).
- Drivers and partners cannot search by short address. They see it on the trip.
- No address verification for organisations or drivers.