Nigeria Postcode

v0.6.3
io.github.Adeniyikayodee/ng-postcode Checked 2 days ago Published 1 month ago

Validate, 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.

ParameterTypeDescription
postcode *stringCode 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.

ParameterTypeDescription
postcode *stringCode in any style, e.g. EK-01-A03-FK-01.
levelintegerAlways 1. Higher levels are lookup_postcode_details.

autocomplete_postcode Autocomplete a Nigerian postcode

Suggest completions for the next segment of a partly typed postcode.

ParameterTypeDescription
partial *stringThe 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.

ParameterTypeDescription
latitude *numberLatitude in decimal degrees, e.g. 7.6211.
longitude *numberLongitude in decimal degrees, e.g. 5.2214.
max_distance_mSearch radius in metres. Defaults to 25.