Click or drag to resize

EAPUtilZipInfoLookup Method

Look up a ZIP code from the xot_zip_codes table.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static ZipInfo ZipInfoLookup(
	IDatabase db,
	string zip,
	bool approximate
)

Parameters

db
Type: NetQuarryIDatabase
The database in which the xot_zip_codes table resides.
zip
Type: SystemString
The ZIP code of interest. A five-digit ZIP is expected, but if a ZIP+4 code is provided it is truncated to five digits.
approximate
Type: SystemBoolean
If true and the specified ZIP code is not found, then the nearest match having the same first three digits is used.

Return Value

Type: ZipInfo
The ZIP information if a match is found, else null.
See Also