When using multi-line or two-line addresses, you can specify which input address GeoStan uses for matching: a P.O. Box or a street address. Use the following to specify your address preference:
OS | Which properties to use |
---|---|
C |
Use the GS_PREFER_STREET or GS_PREFER_POBOX properties of GsFindWithProps. |
COBOL |
Use the GS_PREFER_STREET or GS_PREFER_POBOX properties of GSFINDWP. |
JAVA |
Use the FIND_PREFER_STREET or FIND_PREFER_POBOX properties of FindProps. |
.NET |
Use GS_FIND_PREFER_STREET or GS_FIND_PREFER_POBOX properties of FindProps. |
If GeoStan cannot match to the preferred address, it tries to match to the alternative address.
The following example uses the C Language.
If you set the GS_FIND_PREFER_POBOX find property used with GsFindWithProps, and the input address is
123 Main St |
(GS_ADDRLINE) |
P.O. Box 24 |
(GS_ADDR2) |
GeoStan first attempts to match to P.O. Box 24. If GeoStan cannot find a match, it then attempts to match to 123 Main St.
If you do not specify a preference for a P.O. Box or street address, GeoStan attempts to match to the first address line it receives as input. For more information, see Forcing an exact match on specific address elements.