Format Address
Format and standardize address data for use with Last Mile Intelligence.
Operation
Section titled “Operation”formatAddress
Resource
Section titled “Resource”transformations
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Address Data | JSON | Yes | - | Raw address data to format |
| Output Format | string | No | standard | Output format (standard, compact, full) |
Address Data Fields
Section titled “Address Data Fields”| Field | Type | Description |
|---|---|---|
| street | string | Street address line |
| street2 | string | Additional address line |
| city | string | City name |
| state | string | State code or name |
| zip | string | ZIP or postal code |
| country | string | Country code or name |
Response
Section titled “Response”Success
Section titled “Success”{ "success": true, "formatted": { "line1": "123 Main Street", "line2": "Suite 100", "city": "Chicago", "state": "IL", "zip": "60601", "country": "US", "displayAddress": "123 Main Street, Suite 100, Chicago, IL 60601" }}{ "success": false, "error": "Invalid address data", "details": { "missing": ["city", "state"] }}Error Handling
Section titled “Error Handling”- Missing Required Fields: Address missing city, state, or zip
- Invalid State Code: State code not recognized
- Invalid ZIP Format: ZIP code format is invalid