Menu

Handling “Adjacent Goil” addresses: building deliveries in Ghana with TypeScript
📰

Handling “Adjacent Goil” addresses: building deliveries in Ghana with TypeScript

DEV Community: typescript·Dominic·about 23 hours ago
#Xepu3Vly
#devtotypescript#devto#dev#afrihex#await
Reading 0:00
15s threshold

In Ghana, "Adjacent Goil Filling Station, Madina Zongo Junction" is a perfectly normal address. Riders call customers three times to find the gate, cash on delivery goes unreconciled, and nobody can prove the parcel reached the right place.

I've been building AfriHex to fix that whole chain, and today the official TypeScript SDK is on npm. Here's a tour of what you can build with it.

npm install @afrihex/sdk

Enter fullscreen mode

Exit fullscreen mode

It's typed end to end, has zero dependencies, and runs in Node.js 18+ and modern browsers.

1. Get a key, then a test key

Sign up for a free key with one request (no password, no card):

curl -X POST "https://api.afrihex.com/v2/self/signup" \ -H "Content-Type: application/json" \ -d '{"name": "Your App", "email": "[email protected]"}'

Enter fullscreen mode

Exit fullscreen mode

Then create a test key so your experiments don't touch real customers:

import { AfriHex } from '@afrihex/sdk'

const afrihex = new AfriHex ( { apiKey : process . env .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.