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
)
Public Shared Function ZipInfoLookup (
db As IDatabase,
zip As String,
approximate As Boolean
) As ZipInfo
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:
ZipInfoThe ZIP information if a match is found, else null.
See Also