Resolve a Nigerian address to a postcode
resolve_addressConvert a described Nigerian address into a NIPOST postcode, returning only the precision supported by the address text, pin, or landmarks.
Instructions
Turn a described Nigerian address into a postcode, only as precisely as the evidence allows.
A full building code comes only from a postcode written in the address, a location
pin, or a landmark that is the address itself. Otherwise the result is an area or
district prefix with a question for the user. Read the address yourself and fill
landmarks and geocode_queries; the address text is sent to the configured
geocoder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The address exactly as the user gave it. | |
| latitude | No | Latitude of a location pin the user shared. | |
| landmarks | No | Landmarks named in the address, each with how the address relates to it. Use 'at' only when the address is the landmark itself. | |
| longitude | No | Longitude of that pin. Give it with latitude. | |
| geocode_queries | No | Up to three map search strings you derive from the address: named places and streets with the town and state, most specific first, without directional words like 'back of'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A full postcode at building level, else a prefix. | |
| level | Yes | ||
| method | Yes | ||
| status | Yes | ||
| evidence | Yes | ||
| question | Yes | What to ask the user to get a better answer. | |
| confidence | Yes |