hubThe primary commercial centre governing this coordinate. Includes name, type, economic tier, distance in km, and cardinal bearing.
Hub, anchors, metro, economic tier, admin hierarchy, and a context string — for any point on Earth. One authenticated call. Under 80ms.
The primary commercial centre governing this coordinate — economic tier, distance, cardinal bearing, and place type in a single resolved object.
Typed nearby places at three reach bands — immediate (on-foot), local (bike/moto), and reachable (vehicle) — so your logic knows exactly what surrounds every point.
A single classification — isolated, marginal, integrated, or regional — that places every coordinate on the economic activity spectrum instantly.
Full nested administrative chain — region, department, district — each typed, labelled, and depth-levelled for rules-engine and routing integration.
The dominant city or town the coordinate is economically tied to — with distance and bearing — giving you a human-readable "city" for any point on Earth.
A verified, pre-formatted location narrative generated in the local language — drop-in ready for any AI prompt, retrieval pipeline, or agent context window.
The Context API takes a country code, latitude, and longitude. It runs a parallel gravity-model resolution and returns a structured JSON object your product or agent can consume immediately.
Pass the ISO 2-letter country code, latitude, and longitude. Optionally add ?lang= for a translated response or ?expand=true for enriched anchors.
The engine runs the gravity model, queries the LMDB zone index, resolves the admin chain, and scores the commercial tier — all in parallel, in under 80ms.
You receive a single JSON object with hub, hub_stack, anchors, tier, metro, within, country, and context fields — everything your product or agent needs.
Every field is production-typed, language-aware, and ready to wire into your rules engine, AI pipeline, or frontend — without further transformation.
hubThe primary commercial centre governing this coordinate. Includes name, type, economic tier, distance in km, and cardinal bearing.
hub_stackPriority-ranked array of every nearby market hub — each with tier, distance, and direction. Powers hub-switching and market-stack logic.
anchorsThree reach bands — immediate, local, reachable — each containing typed commercial and infrastructure anchors closest to the coordinate.
tierSingle economic tier string: isolated | marginal | integrated | regional. Maps directly to commercial activity capacity.
metroThe dominant economic metro the coordinate orbits — with name, distance, and bearing. The human-readable "city" for any address.
withinNested admin hierarchy from immediate container (quarter, neighbourhood) up through district, department, and region — each typed and language-aware.
countryComplete country object — ISO2, name, currency code, symbol, local currency name, calling code, national flag emoji, and principal language.
contextA verified narrative in the local language of the resolved place — drop-in ready for KYC workflows, logistics systems, and AI prompt pipelines.
Feed the context string directly into an LLM prompt as a structured location fact. No hallucinated place names — grounded, current, verifiable.
Snap every delivery to the market hub that actually governs it. Use the context string on waybills and receipts in the local language.
Capture a customer location as a structured context object at onboarding. The admin hierarchy fulfils address-of-record requirements without a postal system.
Segment users by the commercial hub that governs their location — not by a static city list. Tier and metro give you real economic stratification.
Use economic tier and metro distance to price location-based risk — urban vs. rural classification and commercial access from a single call.
Layer the resolved hub and anchor data onto ad targeting to activate campaigns only where commercial activity supports conversion.
Surveyors, health workers, and agricultural teams tap once — get a structured context object that writes directly to forms and databases.
Replace free-text address fields with a hub-resolved context string for customers in markets with no formal postal codes. Reduce failed deliveries.
Enter a country code and coordinates. The call goes to api.bwendi.com/context in real time. Sign in to use your free API key — the browser session is passed automatically.
{
"hub": {
"name": "Yaoundé",
"type": "regional_capital",
"tier": "regional",
"distance": 2.4,
"bearing": "NW"
},
"tier": "regional",
"metro": { "name": "Yaoundé", "distance": 0 },
"within": [
{ "type": "district", "name": "Ekounou" },
{ "type": "department", "name": "Mfoundi" },
{ "type": "region", "name": "Centre" }
],
"country": { "name": "Cameroon", "iso2": "CM",
"currency": "XAF", "flag": "🇨🇲" },
"context": "Ekounou, Yaoundé, Région Centre, Cameroun.",
"credits": 1
}Don't have a key yet? Get a free key →
1 credit. One call. Hub, anchors, tier, metro, admin hierarchy, and a context string. Anywhere on Earth.