GetGTXLatitude - GeoTAX_Premium - 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
Last updated
2024-07-30
Published on
2024-07-30T03:53:01.467023

GetGTXLatitude returns a latitude and North/South position from the GeoTAX database look up.

Syntax

GetGTXLatitude (&stGTXAddr, szLatitude, &cLatDir, lFixedString);

Parameters

GEOTAXADDRESS stGTXAddr;    /* input address information (see below) */
char* szLatitude;           /* 7-character Latitude in degrees with 4 decimal                   positions */
char* cLatDir;              /* Direction North/South */
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

szLatitude

char

7-character latitude in degrees with 4 decimal positions.

cLatDir

char

Direction:

N   NorthS   South

Code Example

#include "geotax.h"
GEOTAXADDRESS stGTXAddr;
char szLatitude[7+1];
char cLatDir;
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 = GetGTXLatitude (&stGTXAddr, szLatitude, &cLatDir, lFixedString);
 
if (lReturnCode == GTXAPI_SUCCESS)
printf ("Output Latitude is: %s%c\n ", szLatitude, cLatDir);