ZIP Code Radius Search
zipcode_radius_searchFind all ZIP codes within a specified radius from a center point, using either a postal code or lat/long coordinates. Returns distance for each result.
Instructions
Find all ZIP/postal codes within a given radius of a center point. Specify the center as EITHER a ZIP code + country OR lat/long coordinates. Returns paginated results (up to 500 per page) with each code's distance from center. Max radius per unit: km=100, mi=100, yd=109361, m=100000, ft=328084, in=3937008.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| radius | Yes | Search radius (must be > 0). Max radius per unit: km=100, mi=100, yd=109361, m=100000, ft=328084, in=3937008. | |
| code | No | Center ZIP/postal code. Must be paired with 'country'. Use EITHER this OR lat+long. | |
| country | No | ISO 3166-1 alpha-2 country code (e.g. 'US', 'GB', 'DE'). Required when using 'code' as center. Use this with code, not with lat/long. | |
| lat | No | Center latitude (-90 to 90). Must be paired with 'long'. Use EITHER this OR code+country. | |
| long | No | Center longitude (-180 to 180). Must be paired with 'lat'. Use EITHER this OR code+country. | |
| unit | No | Distance unit. Default: km. Options: km, mi, yd, m, ft, in. | km |
| page | No | Page number for paginated results (max 500 results per page). |