Repository avatar
AI Tools
v1.0.0
active

nbrain-mena-logistics-wasl-dispatch

io.github.NBrain-Studio/nbrain-mena-logistics-wasl-dispatch

Saudi TGA Wasl cold-chain, UK TfL PHV compliance, WGS84 Vincenty & last-mile COD ledger MCP

Documentation

nbrain-mena-logistics-wasl-dispatch — Saudi TGA Wasl Telematics, UK TfL PHV Private Hire Compliance, WGS84 Vincenty Geodesy & Last-Mile COD Ledger + MCP Server

License: MIT Python 3.10+ MCP Registry

Engineered by Eng. Nadeem Mohamed Badr El-Din at NBrain (منظومة إن برين — nbra.in) for commercial fleet telematics, cold-chain pharmaceutical delivery, UK private-hire dispatch, and MENA e-commerce COD couriers.

Core Modules

  1. Saudi Transport General Authority (TGA Wasl — وصل): Validates 15-digit GPS tracker IMEI Luhn check digits, KSA spatial bounds, commercial speed caps, and SFDA Cold-Chain cargo temperature regimes (2°C–8°C chilled pharma, <= -18°C frozen, 15°C–25°C controlled ambient).
  2. Iterative WGS84 Vincenty Ellipsoidal Distance (0.5 mm precision): Sub-millimeter oblate-spheroid geodesic distance + exact-Decimal dispatch fare and surge pricing.
  3. UK TfL Private Hire (PHV) Operator Compliance: Enforces the post-2021 High Court Operator-as-Principal contract & 20% UK VAT rule, pre-booked dispatch timestamps (blocking illegal plying-for-hire), and driver/vehicle/operator badge validity.
  4. Last-Mile COD (Cash-on-Delivery) Manifest Reconciler: Exact Decimal courier cash-in-hand variance, RTO (Return-to-Origin) fee handling, and merchant net settlement.

Quick Verification

PYTHONPATH=src python -m unittest discover -s tests -v