Nigeria Postcode
v0.6.3Validate, look up and resolve addresses to Nigeria's NIPOST digital postcodes (NDAPS).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
validate_postcode Validate a Nigerian postcode
Check a postcode's structure offline and return its canonical forms and segments. Free and instant. Does not confirm the code is assigned to a building; use lookup_postcode for that.
| Parameter | Type | Description |
|---|---|---|
postcode * | string | Code in any style, e.g. 'ek 01 a03 fk 01'. |
lookup_postcode Look up a Nigerian postcode
Confirm a postcode is assigned to a building. Free. For the address and building details, use lookup_postcode_details.
| Parameter | Type | Description |
|---|---|---|
postcode * | string | Code in any style, e.g. EK-01-A03-FK-01. |
level | integer | Always 1. Higher levels are lookup_postcode_details. |
autocomplete_postcode Autocomplete a Nigerian postcode
Suggest completions for the next segment of a partly typed postcode.
| Parameter | Type | Description |
|---|---|---|
partial * | string | The start of a code, e.g. 'EK 01 A'. |
find_postcode_at_location Find the postcode at a location
Return the postcode of the nearest building to a coordinate in Nigeria. Names and the house address are withheld unless NG_POSTCODE_MAX_LEVEL is 2 or more.
| Parameter | Type | Description |
|---|---|---|
latitude * | number | Latitude in decimal degrees, e.g. 7.6211. |
longitude * | number | Longitude in decimal degrees, e.g. 5.2214. |
max_distance_m | Search radius in metres. Defaults to 25. |