Find the postcode at a location
find_postcode_at_locationFind the postcode of the nearest building to a latitude and longitude in Nigeria. Search within 25 metres by default; names and addresses need NG_POSTCODE_MAX_LEVEL 2+.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latitude | Yes | Latitude in decimal degrees, e.g. 7.6211. | |
| longitude | Yes | Longitude in decimal degrees, e.g. 5.2214. | |
| max_distance_m | No | Search radius in metres. Defaults to 25. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | Yes | Enclosing area code, e.g. EK-01-A03-FK. | |
| unit | Yes | ||
| depth | No | How deep the match goes, e.g. unit. | |
| found | Yes | False when no building is within the radius. | |
| state | Yes | ||
| message | Yes | ||
| district | Yes | ||
| radius_m | Yes | The radius the API actually applied. |