/
montgomery.json
193 lines (193 loc) · 6.42 KB
/
montgomery.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{
"coverage": {
"US Census": {
"geoid": "48339",
"name": "Montgomery County",
"state": "Texas"
},
"country": "us",
"state": "tx",
"county": "Montgomery"
},
"data": "http://services1.arcgis.com/PRoAPGnMSUqvTrzq/ArcGIS/rest/services/Tax_Parcel_Public_View/FeatureServer/0",
"protocol": "ESRI",
"conform": {
"format": "geojson",
"number": {
"function": "regexp",
"field": "PropertyAddress",
"pattern": "^(\\d+(?:\\s+1/2)?)(?:-\\d+|-?(?:[A-Z]/)*[A-Z])?\\b"
},
"street": {
"function": "regexp",
"field": "PropertyAddress",
"pattern": "^(?:\\d+(?:\\s+1/2)?(?:-\\d+|-?(?:[A-Z]/)*[A-Z])?)?\\b(.+?)\\s*,"
},
"unit": {
"function": "regexp",
"field": "PropertyAddress",
"pattern": "^(?:\\d+(?:\\s+1/2)?)(-\\d+|-?(?:[A-Z]/)*[A-Z])\\b"
},
"city": {
"function": "regexp",
"field": "PropertyAddress",
"pattern": ",\\s*(.+?)\\s*,\\s+(?:TX)\\s+"
},
"region": {
"function": "regexp",
"field": "PropertyAddress",
"pattern": "\\b(TX)\\b"
},
"postcode": {
"function": "regexp",
"field": "PropertyAddress",
"pattern": "\\s(\\d{5})$"
}
},
"test": {
"enabled": true,
"description": "full addresses with city, state, and zip are in a single field",
"acceptance-tests": [
{
"description": "empty row",
"inputs": {
"PropertyAddress": ""
},
"expected": {
"number": "",
"street": "",
"unit": "",
"city": "",
"region": "",
"postcode": ""
}
},
{
"description": "only-numbers house number",
"inputs": {
"PropertyAddress": "66 MCCLELLAN CIR, HUMBLE, TX 77339"
},
"expected": {
"number": "66",
"street": "MCCLELLAN CIR",
"unit": "",
"city": "HUMBLE",
"region": "TX",
"postcode": "77339"
}
},
{
"description": "number is hyphenated",
"inputs": {
"PropertyAddress": "23207-2 DECKER PRAIRIE ROSEHILL RD, MAGNOLIA, TX 77355"
},
"expected": {
"number": "23207",
"street": "DECKER PRAIRIE ROSEHILL RD",
"unit": "-2",
"city": "MAGNOLIA",
"region": "TX",
"postcode": "77355"
}
},
{
"description": "number is hyphenated w/alpha",
"inputs": {
"PropertyAddress": "20111-A PLANTATION CREEK DR, PORTER, TX 77365"
},
"expected": {
"number": "20111",
"street": "PLANTATION CREEK DR",
"unit": "-A",
"city": "PORTER",
"region": "TX",
"postcode": "77365"
}
},
{
"description": "number is hyphenated w/2 /-delimited alphas",
"inputs": {
"PropertyAddress": "37019-A/B HICKORY RIDGE RD, MAGNOLIA, TX 77354"
},
"expected": {
"number": "37019",
"street": "HICKORY RIDGE RD",
"unit": "-A/B",
"city": "MAGNOLIA",
"region": "TX",
"postcode": "77354"
}
},
{
"description": "number is hyphenated w/3 /-delimited alphas",
"inputs": {
"PropertyAddress": "410-A/B/C DANIELS ST, WILLIS, TX 77378"
},
"expected": {
"number": "410",
"street": "DANIELS ST",
"unit": "-A/B/C",
"city": "WILLIS",
"region": "TX",
"postcode": "77378"
}
},
{
"description": "number has alpha and unhyphenated",
"inputs": {
"PropertyAddress": "24103A SPENCER BLVD, MAGNOLIA, TX 77355"
},
"expected": {
"number": "24103",
"street": "SPENCER BLVD",
"unit": "A",
"city": "MAGNOLIA",
"region": "TX",
"postcode": "77355"
}
},
{
"description": "number-less address",
"inputs": {
"PropertyAddress": "KINGS MANOR DR, HUMBLE, TX 77339"
},
"expected": {
"number": "",
"street": "KINGS MANOR DR",
"unit": "",
"city": "HUMBLE",
"region": "TX",
"postcode": "77339"
}
},
{
"description": "street starts with number",
"inputs": {
"PropertyAddress": "1ST ST, SPLENDORA, TX 77372"
},
"expected": {
"number": "",
"street": "1ST ST",
"unit": "",
"city": "SPLENDORA",
"region": "TX",
"postcode": "77372"
}
},
{
"description": "street starts with number",
"inputs": {
"PropertyAddress": "67 1/2 APRIL WIND DR S, MONTGOMERY, TX 77356"
},
"expected": {
"number": "67 1/2",
"street": "APRIL WIND DR S",
"unit": "",
"city": "MONTGOMERY",
"region": "TX",
"postcode": "77356"
}
}
]
}
}