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 NameDescriptionData TypeRequiredSample Value
LatitudeLatitude coordinate from -179.2311 to 179.8597.StringTrue36.763075
LongitudeLongitude coordinate from 17.8315 to 71.4411.StringTrue-76.258473
RadiusRadius in miles. (The maximum is 50.)StringTrue2.1
LicenseKeyYour license key.StringTrue00000000-0000-0000-0000-000000000000

Response

Returns: ZipCodesResponse object

Let’s get your business buzzing

Spark customer connections in minutes. Discover the full power of our mobile messaging platform—no hidden fees, just real results.