GS_FIND_CORRECT_LASTLINE, when set to True, corrects elements of the output lastline, providing a good ZIP Code or close match on the Soundex even if the address would not match or was non-existent.
The feature works when GS_FIND_ADDRCODE is True and the address does not match a candidate or when GS_FIND_Z_CODE is True and only lastline information is input.
For example, when GS_FIND_ADDRCODE = True
:
Address: 0 MAIN
LastLine: BOLDER CA 80301
returns:
MATCH_CODE=E622
LASTLINE=BOULDER, CO 80301
CITY=BOULDER
STATE=CO
ZIP=80301
For example, GS_FIND_Z_CODE = True
:
Address:
LastLine: BOLDER CA 80301
returns:
MATCH_CODE=Z6
LASTLINE=BOULDER, CO 80301
CITY=BOULDER
STATE=CO
ZIP=80301
The following elements are corrected:
-
City correction - The city correction is based on the input ZIP Code unless a match to city and state exists in which case both search areas are retained. The state input must be correct or spelled out correctly when no ZIP Code is input, location code, and coordinates based on input ZIP Code.
-
Input city is incorrect:
returns:HAUDENVILLE MA 01039
LASTLINE=HAYDENVILLE, MA 01039 LAT= 42396500 LON= -72689100
-
-
State correction - State is abbreviated when spelled out correctly or corrected when a ZIP Code is present. There are some variations of state input which are recognized, ILL, ILLI, CAL, but not MASS. GeoStan does not consider the abbreviation of the variation a change so ILL to IL is not identified as a change in the match code. In addition, the output of the ZIP Code for a single ZIP city is not considered a change.
-
Input city exists:
- Input:
Bronx NT, 10451
returns:
LASTLINE= BRONX, NY 10451
- Input:
Bronx NT
returns:
LASTLINE= BRONX NT No ZIP Code for correction
- Input:
- Input city does not exist - preferred city for ZIP Code returned:
- Input:
60515
returns:
LASTLINE=DOWNERS GROVE, IL 60515
- Input:
MATCH_CODE=E622 ILLINOIS 60515 (or ILL 60515 or IL 60515 or ILLI 60515)
returns:
LASTLINE=DOWNERS GROVE, IL 60515 MATCH_CODE=E222
- Input:
-
- ZIP Code correction - ZIP Code is corrected only when a valid city/state is
identified and has only one ZIP Code.
- Exists on input:
Input:
HAUDENVILLE MA 01039
returns:
LASTLINE=HAYDENVILLE, MA 01039
- Incorrect on input - ZIP Code correction is not performed, both search areas
are retained:
HAUDENVILLE MA 01030
returns:
LASTLINE=HAYDENVILLE, MA 01030 City and ZIP do not correspond
- Does not exist on input:
-
Input:
DOWNRS GROVE, IL
returns:
LASTLINE=DOWNERS GROVE, IL City with multiple ZIP Codes
-
Input:
LILSE IL
returns:
LASTLINE=LISLE, IL 60532 City with a single ZIP Code
-
Input:
DOWNERS GROVE LL
returns:
LASTLINE=DOWNERS GROVE LL, No ZIP Code for correction
-
Input:
DOWNRS GROVE, LL
returns:
LASTLINE=DOWNRS GROVE, LL No ZIP Code for correction
-
Input:
LILSE ILLINOIS
returns:
LASTLINE= LISLE, IL 60532 Correct spelled out state
-
Input:
LISLE ILLINOS
returns:
LASTLINE= LISLE ILLINOS Incorrect spelled out state, no ZIP Code for correction
-
- Exists on input: