Correct Lastline - geo_addressing_sdk - 5.0

Geo Addressing SDK Developer Guide

Product type
Software
Portfolio
Locate
Product family
Geo Addressing
Product
Geo Addressing SDK
Version
5.0
Language
English
Product name
Geo Addressing SDK
Title
Geo Addressing SDK Developer Guide
Copyright
2023
First publish date
2007
ft:lastEdition
2024-07-12
ft:lastPublication
2024-07-12T13:44:57.839102

When Output corrected last line is enabled, When FIND_CORRECT_LASTLINE is set to true, the elements of the output lastline are corrected, providing a good ZIP Code or close match on the soundex even if the address did not match or was non-existent. This feature is disabled by default.

The feature works when FIND_ADDRCODE is true and the address does not match a candidate or when FIND_Z_CODE is true and only lastline information is input.

For example, when 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, FIND_Z_CODE = true

Address: Lastline: BOLDER CA 80301

Returns:

MATCH_CODE=Z6
LASTLINE=BOULDER, CO 80301
CITY=BOULDER STATE=CO
ZIP=80301  

When Correct Lastline is enabled, the following elements are corrected:

  • City correction - The city correction is based on input ZIP Code unless a match to city and state exists in which case both search areas are retained. The input state must be correct or spelled out correctly when no ZIP Code is input. The returned location code and coordinates are based on the output ZIP Code.
    • Input city is incorrect:

      HAUDENVILLE MA 01039
      Returns 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 the input state which are recognized, ILL, ILLI, CAL, but not MASS. The US geocoder 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 Code city is not considered a change.
    • Input city exists:

      Bronx NT, 10451
      Returns LASTLINE= BRONX, NY 10451

      Bronx NT
      Returns LASTLINE= BRONX NT
      No ZIP Code for correction.

    • Input city does not exist - preferred city for ZIP Code returned:

      60515
      Returns LASTLINE=DOWNERS GROVE, IL 60515
      MATCH_CODE=E622

      ILLINOIS 60515 (or ILL 60515 or IL 60515 or ILLI 60515)
      Returns LASTLINE=DOWNERS GROVE, IL 60515
      MATCH_CODE=E222

  • ZIP Code correction - The ZIP Code is corrected only when a valid city/state is identified and has only one ZIP Code.
    • Exists on 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 Code do not correspond.

    • Does not exist on input:

      DOWNRS GROVE, IL
      Returns LASTLINE=DOWNERS GROVE, IL
      City with multiple ZIP Codes.

      LILSE IL
      Returns LASTLINE=LISLE, IL  60532
      City with a single ZIP Code.

      DOWNERS GROVE LL
      Returns LASTLINE=DOWNERS GROVE LL,
      No ZIP Code for correction.

      DOWNRS GROVE, LL
      Returns LASTLINE=DOWNRS GROVE, LL
      No ZIP Code for correction.

      LILSE ILLINOIS
      Returns LASTLINE= LISLE, IL  60532
      Correct spelled out state.

      LISLE ILLINOS
      Returns LASTLINE= LISLE ILLINOS
      Incorrect spelled out state, no ZIP Code for correction.

Note: For information about the returned match codes, see Correct Lastline Match Codes.