GsSoundex - geostan_1 - 2024.01

GeoStan Geocoding Suite Reference for Windows, Linux, and z/OS

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > GeoStan
Version
2024.01
Language
English
Product name
GeoStan
Title
GeoStan Geocoding Suite Reference for Windows, Linux, and z/OS
Copyright
2024
First publish date
1994
Last updated
2024-07-29
Published on
2024-07-29T23:01:18.924000

Generates a soundex key for use in GsFindFirst.

Syntax

intlu GsSoundex(pstr pName);

Arguments

pName   String to convert to a soundex key. Input.

Return Values

Soundex key.

Notes

Attention: A soundex match is a match based on the pronunciation of a field.

This function generates a soundex key for a street name. Use it in conjunction with GsFindFirstStreet() when you want to perform a soundex search. The soundex key, when combined with a locale (state, and city), is the primary index into the GeoStan databases. Searching by soundex allows you to use your own scoring and matching mechanism for geocoding.

GeoStan uses a modified version of the standard soundex algorithm first published by Donald Knuth. The modifications employed within GeoStan include special treatment of certain prefixes such as MAC, KN, and WR; numeric street names; and an encoding scheme to pack the key into the smallest number of bits.