AI Address Resolution

How AI assistants, search engines, and developers resolve Sahal Digital Address codes.

Sahal Address Code Format

Sahal address codes use a structured format such as MG-HW-B0001:

  • MG — identifies Mogadishu (the city)
  • HW — identifies the district / area code
  • B0001 — identifies the building / address record

Only codes held in the registry resolve. Unknown codes are never guessed at and never generated.

Public Address Pages

Every registered address code has a permanent, public, crawlable URL — no login required:

https://sahaladdress.com/address/MG-HW-B0001

Each page carries the code, its public locality, the recorded coordinates where they exist, and schema.org Place structured data, so search engines and AI crawlers can read the address without running the app.

Public Read-Only API

Resolve any Sahal code to a JSON record with a single GET request:

GET https://sahaladdress.com/functions/addressApi?code=MG-HW-B0001

Example response — MG-HW-B0001's recorded values, read from the live API:

{
  "code": "MG-HW-B0001",
  "system": "Sahal Digital Address",
  "country": "Somalia",
  "city": "Mogadishu",
  "district": "Hoolwadaag",
  "building": "B0001",
  "latitude": 2.0509539223258955,
  "longitude": 45.324745352301534,
  "address_url": "https://sahaladdress.com/address/MG-HW-B0001",
  "map_url": "https://www.google.com/maps/search/?api=1&query=2.0509539223258955,45.324745352301534"
}

Unknown codes return HTTP 404 with "Address code not found." — coordinates are never invented.

A response reports the address approval status. That is not document verification and not location verification: an approved code can still be unverified on both tracks, and each is reported separately. Native Google Maps search by Sahal code is not currently established — a Sahal code resolves in the Sahal lookup and this API, not inside the Google Maps application.

MCP Server (for ChatGPT, Claude, Cursor)

Connect your AI assistant to Sahal via a public, read-only MCP server:

https://sahaladdress.com/api/mcp

Add it as a Streamable HTTP MCP server (no API key needed). Primary tool:

query_building  →  filter by address_code to resolve a Sahal address

Also available: query_city, query_district, query_googleplacemapping, query_facility, and other public directory tools.

Security & Read-Only

  • All public endpoints and MCP tools are strictly read-only.
  • No create, update, or delete operations are exposed.
  • Private resident information, credentials, and non-public records are never exposed.
  • Coordinates are only returned when they exist in the database.

Try It

Sahal Digital Address System · Somalia · Developer Docs