Determines whether a house number falls within a range.
Syntax
GsFunStat GsTestRange(GsId gs, gs_const_str number,gs_const_str rangeLo,
gs_const_str rangeHi);
Arguments
GsIdgs ID returned by GsInitWithProps for the current instance of GeoStan. Input.
gs_const_strnumber House number to test. Input.
gs_const_strrangeLo Low house number in the range. Input.
gs_const_strrangeHi High house number in the range. Input.
Return Values
Non-zero Number is within the range.
0 Number is not within the range or GeoStan cannot make the comparison.
Prerequisites
GsInitWithProps()
Notes
GsTestRange() tests to see if the house number is within the range defined by rangeHi and rangeLo. It handles all valid house number patterns, such as
|
|
|
|
|
|
|
|
|
|
This function uses USPS rules defined in Publication 28, "Postal Addressing Standards," to determine if a number is in range. For more information, refer to this publication on the USPS Website.
Some patterns are not comparable with other patterns; for example, 123 is not comparable to a range of 1A01 to 1A99.