Every ZIP code or postcode within a radius
find_postcodes_in_radiusEvery US ZIP code, or every UK postcode sector (or district), whose centre is within a radius of a place, nearest first with the distance. The centre can be a ZIP, a UK postcode, sector or district, an address, or "lat,lng". For service areas, delivery zones, direct-mail and ad targeting lists. Straight-line distance between centres (an area counts when its centre is inside). Free: our own copy of the Census ZIP centres and the UK postcode centres. The answer has a run_id: write it into a sheet or map it (render_map from_run). For "who on MY list is within X miles", use filter_by_location instead. Set render to true only when the user wants to keep or share the map: it returns a link, GeoJSON and KML, and update_map can change it later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | mi | |
| limit | No | Most areas to list, nearest first (up to 2,500); the total found is always given. | |
| title | No | ||
| center | Yes | A ZIP ("10001"), a UK postcode, sector or district ("SW1A 1AA", "SW1A 1", "SW1A"), an address, or "lat,lng". | |
| radius | Yes | Up to 500 miles or 800 km. | |
| render | No | ||
| country | No | Optional: worked out from the centre. | |
| granularity | No | UK only: postcode sectors ("SW1A 1") or districts ("SW1A"). | sector |