The GetZipCodesWithinDistance method returns all ZIP Codes within a radius around a given latitude/longitude geolocation.
Endpoint
GET:https://pav3.esendex.us/PavService.svc/GetZipCodesWithinDistance?Latitude={LATITUDE}&Longitude={LONGITUDE}&Radius={RADIUS}&LicenseKey={LICENSEKEY}
Syntax
GetZipCodesWithinDistance(Latitude, Longitude, Radius, LicenseKey)
Request Parameters
| Parameter Name | Description | Data Type | Required | Sample Value |
|---|---|---|---|---|
| Latitude | Latitude coordinate from -179.2311 to 179.8597. | String | True | 36.763075 |
| Longitude | Longitude coordinate from 17.8315 to 71.4411. | String | True | -76.258473 |
| Radius | Radius in miles. (The maximum is 50.) | String | True | 2.1 |
| LicenseKey | Your license key. | String | True | 00000000-0000-0000-0000-000000000000 |
Response
Returns: ZipCodesResponse object