GetGTXMCD - GeoTAX_Premium - 7 - 7.7

GeoTAX Premium for Windows, UNIX/Linux, and z/OS

Product type
Software
Portfolio
Verify
Product family
Geo Addressing
Product
GeoTAX Premium
Version
7.7
Language
English
Product name
GeoTAX Premium
Title
GeoTAX Premium for Windows, UNIX/Linux, and z/OS
Copyright
2023
First publish date
1998
ft:lastEdition
2023-10-19
ft:lastPublication
2023-10-19T16:49:54.924301

GetGTXMCD return a five-character Minor Civil Division/Census County Division (MCD/CCD) from the GeoTAX database. MCDs are primary divisions of counties established under state law. CCDs are geographic areas defined by the Census Bureau, in cooperation with state and local officials, for the purpose of presenting data like that contained in MCDs in states where there are no official MCDs.

Syntax 

GetGTXMCD (&stGTXAddr, szMCD, lFixedString);

Parameters

GEOTAXADDRESS stGTXAddr;    /* input address information (see below) */
char* szMCD;                /* 5-character Minor Civil Division/Census County                   Division */
long lFixedString;          /* String termination flag */

Input Structure

Elements

Data Type

Description

szAddrLine1

char[100+1]

Primary address line.

szAddrLine2

char[100+1]

Secondary address line.

szAddrLine3

char[100+1]

Tertiary address line.

szCity

char[50+1]

City Line.

szState

char[50+1]

State line.

szZIP

char[9+1]

9-digit ZIP Code.

Output Structure

Elements

Data Type

Description

szMCD

char[5+1]

5-character Minor Civil Division Code

Code Example

#include “geotax.h”
GEOTAXADDRESS stGTXAddr;
char szMCD[5+1];
long lFixedString;
long lReturnCode;
.
.
.
strcpy (stGTXAddr.szAddrLine1, “4200 Parliament Place”);
strcpy (stGTXAddr.szAddrLine2, “Suite 600”);
strcpy (stGTXAddr.szAddrLine3, “ “);
strcpy (stGTXAddr.szCity, “Lanham”);
strcpy (stGTXAddr.szState, “MD”);
strcpy (stGTXAddr.szZIP, “207061844”);
lFixedString = 0;
 
lReturnCode = GetGTXMCD (&stGTXAddr, szMCD, lFixedString);
 
if (lReturnCode == GTXAPI_SUCCESS)
printf (“Output 5 character Minor Civil Division code is: %s\n ”, szMCD);