Sudan Atlas

v0.1.5
io.github.aminshennan/sudan-atlas Checked 2 days ago Published 12 days ago

Match Sudanese place names (Arabic or English) to official P-codes; get places and boundaries.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

match_place_name Match a Sudanese place name

Match one state or locality name, in Arabic or English and any spelling, to its official P-code. Returns pcode (null when not confident), names, score 0-1, method (exact, variant, fuzzy, ambiguous, none) and up to three alternatives.

ParameterTypeDescription
name *stringThe place name as written, e.g. 'Elfasher' or 'الفاشر'
level1 for states, 2 for localities; leave out if unknown
state_hintstringThe state, as a name in any spelling or a P-code such as SD02

match_place_names Match many Sudanese place names

Match up to 1,000 names at once (for example a spreadsheet column). Each item can carry its own state hint. Results are in the same order as the input.

ParameterTypeDescription
names *arrayThe names to match, each with its own optional state hint (1 to 1,000)
level1 for states, 2 for localities; leave out if unknown

search_places Search Sudan's states and localities

Find states and localities whose official English or Arabic name contains the text, best first, with the matcher's answer for misspellings.

ParameterTypeDescription
query *stringPart of a state or locality name, in Arabic or English, e.g. 'Nyala' or 'نيالا'
limitintegerHow many places to return, 1 to 25 (default 10)

get_place Details of a state or locality

Official names, level, parent state, localities (for a state), area in km² and estimated population (COD-PS 2025, mid-2025) for a P-code.

ParameterTypeDescription
pcode *stringA P-code such as SD02 or SD02114

list_places List states or localities

All 19 admin-1 units (18 states and the Abyei PCA area), or the localities of the whole country or of one state.

ParameterTypeDescription
level *1 to list the states (and the Abyei PCA area), 2 to list localities
state_pcodestringWith level 2, only the localities of this state, e.g. SD02; leave out for all 189

get_boundary Boundary of a state or locality

The boundary as a GeoJSON Feature (EPSG:4326) with the place's properties. 'light' is small and enough for most maps; 'medium' is more detailed.

ParameterTypeDescription
pcode *stringA P-code such as SD02 (a state) or SD02114 (a locality)
resolutionstring'light' (default, small) or 'medium' (more detailed)