enrich_address
Normalize a postal address by title-casing components and validating US ZIP codes. Provides a clean, standardized address format without USPS validation or geocoding.
Instructions
Normalize a postal address.
Title-cases components and regex-checks US ZIP codes. This is not USPS validation or geocoding.
Args: street: Street line (e.g. "123 Main St") city: City name state: State / province abbreviation (e.g. "CA") postal_code: ZIP or postal code country: ISO 3166-1 alpha-2 country code (default "US")
Returns: dict with keys: normalized, us_zip_valid, one_line, method (normalization), geocoded (false), usps_validated (false), cost_usd
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | ||
| state | No | ||
| street | Yes | ||
| country | No | US | |
| postal_code | No |