Download Geocoding Rule Base Developer Guide
Transcript
For example, German style addresses have the street type
indicated in the same word as the street name. Thus,
HESSESTRASSE means HESSE STREET. The substring form can
be used to test for these suffixes:
Consider an input address such as:
HESSESTRASSE 15
The pattern:
+ [{} (-7:-1) = STRASSE] | ^
remainder of an integer division. For example, x % 2 is 0 if the
number is divisible by two. It is 1 if the number is odd. At this
point in the discussion, the complete format of a conditional
expression can be presented:
<left-operand> <relational-operator> <right-operand>
The left operand may be:
variable name
{}
would match to all words ending in STRASSE that were followed
by a numeric.
{} PICT
Similarly variables and match key fields can be tested:
{<match key name>} PICT
[ temp(2:4) = bcd]
[{SN}(1:4) = FORT]
When conducting substring tests on multitoken values (?),
remember that separating spaces are removed. Thus, to test
MARTIN LUTHER KING specify MARTINLUTHERKING.
Arithmetic expressions
Arithmetic expressions can be included as the left operand of a
conditional expression. The following arithmetic operators are
available:
{} LEN
{<match key name>} LEN
variable name PICT
variable name LEN
{<match key name>}
<arithmetic-expression>
The relational operators are <, >, <=, >=, !=, =
The right operand may be:
variable name
+ addition
literal
-
constant
subtraction
* multiplication
/
division
% modulus
Arithmetic is limited to one operation per expression. No
parentheses are permitted. The modulus operation is the
APPENDIX B
An arithmetic expression is
<left-arith-operand> <arith-operator> <right-arith-operand>
A left-arith-operand is a
variable name
127