Ushindi Map B2B Platform API v1.9

Angola Geospatial Infrastructure for Fleets, Banks, Utilities & Gov

Integrate verified 21-province boundaries, batch AO-... digital addresses, Centralidade & informal Bairro geocoding, and vehicle-passability routing & fleet matrices into any Angolan application with zero foreign map lock-in.

REST Endpoints (/api/v1)

GET/api/v1/address/encode?lat=-8.9990&lng=13.2680

Converts WGS84 lat/lng anywhere in Angola into a deterministic ~1.5m offline-capable AO-<PROV>-<LAT>-<LNG> code.

curl -s "https://map.yourdomain.co.ao/api/v1/address/encode?lat=-8.9990&lng=13.2680"
JS SDK (/sdk/ushindi-map.js)View SDK
<script src="/sdk/ushindi-map.js"></script>
<script>
  const code = UshindiMap.encode(-8.999, 13.268, "LDA");
  const api = UshindiMap.createClient({ baseUrl: "/api/v1" });
</script>
Checkout Picker (/sdk/ushindi-widget.js)View Widget
<div id="ushindi-picker"></div>
<script src="/sdk/ushindi-widget.js"></script>
<script>
  UshindiMapWidget.mount("#ushindi-picker", {
    onSelect: (addr) => console.log(addr.addressCode)
  });
</script>

cPanel Deployment Self-Diagnostics (/api/v1/diagnostics)

Run after extracting ushindi-map-cpanel.zip to verify PHP runtime, writable api/data/, seed datasets, and Moderator PIN security.

B2B Event Webhooks (/api/v1/webhooks)

Subscribe to hazard.created, override.approved, and poi.verified events (public https:// only; SSRF-protected).

Batch AO-Code CSV Converter (/api/v1/address/batch)

Paste or upload CSV rows (label,lat,lng, lat,lng, or AO-...) to bulk-encode or decode across all 21 provinces.

Geofencing & Delivery Zone Checker (/api/v1/geofence/check)

Validate whether any AO-... code or lat,lng falls inside a target Angolan province, radius zone, or GeoJSON delivery polygon.

Live API Usage & Key Analytics (/api/v1/analytics/usage)

Server-tracked request counters per endpoint and masked API key (zero PII logged).

Deployment & Sovereign Scale Path
  • Stage 1 (Today — cPanel Subdomain): Single ushindi-map-cpanel.zip deployed on cPanel (PWA + MapLibre UI + PHP 8 REST API v1.9 + atomic JSON store).
  • Stage 2 (National Scale): Containerized Docker stack (PostGIS 16 + Valhalla + Martin PMTiles) in infra/docker-compose.yml, deployable in Angolan data centers (Angola Cables / MSTelcom / Paratus) or on-premise.
Security, Privacy & Data Governance
  • • Moderation actions require X-Moderator-Pin configured in api/v1/config.php.
  • • Fleet GPS telemetry strips driver/device identifiers before corridor speed aggregation.
  • • Apache .htaccess blocks direct HTTP access to internal store and seed files.