PostalCodeZipInfoLookup Method (IDatabase, String, String, String, PostalCodeSearchOptions) |
Look up a ZIP code from a table or view similar to 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,
string viewUSA,
string viewCanadian,
PostalCodeSearchOptions options
)
Public Shared Function ZipInfoLookup (
db As IDatabase,
zip As String,
viewUSA As String,
viewCanadian As String,
options As PostalCodeSearchOptions
) 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.
- viewUSA
- Type: SystemString
The table or view to use when looking up United States zip codes. - viewCanadian
- Type: SystemString
The table or view to use when looking up Canadian zip codes, or null if no Canadian lookup is supported. - options
- Type: NetQuarryPostalCodeSearchOptions
Zip code search options.
Return Value
Type:
ZipInfoThe ZIP information if a match is found, else null.
See Also