/
whiteside.json
74 lines (74 loc) · 2.14 KB
/
whiteside.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
{
"coverage": {
"US Census": {
"geoid": "17195",
"name": "Whiteside County",
"state": "Illinois"
},
"country": "us",
"state": "il",
"county": "Whiteside"
},
"data": "http://services.arcgis.com/l0M0OC6J9QAHCiGx/ArcGIS/rest/services/TaxParcelQuery/FeatureServer/0",
"type": "ESRI",
"conform": {
"type": "geojson",
"number": {
"function": "prefixed_number",
"field": "SITEADDRESS"
},
"street": {
"function": "postfixed_street",
"field": "SITEADDRESS"
},
"city": {
"function": "regexp",
"field": "SITEADDRESS2",
"pattern": "^(.+?)\\s+IL\\s+"
},
"region": {
"function": "regexp",
"field": "SITEADDRESS2",
"pattern": "\\b(IL)\\b"
},
"postcode": {
"function": "regexp",
"field": "SITEADDRESS2",
"pattern": "(\\d+)$"
}
},
"test": {
"enabled": true,
"description": "city/region/postcode are concatenated into 1 field",
"acceptance-tests": [
{
"description": "city/region/postcode are available",
"inputs": {
"SITEADDRESS": "9989 PRAIRIE CENTER RD",
"SITEADDRESS2": "MORRISON IL 61270"
},
"expected": {
"number": "9989",
"street": "PRAIRIE CENTER RD",
"city": "MORRISON",
"region": "IL",
"postcode": "61270"
}
},
{
"description": "just region",
"inputs": {
"SITEADDRESS": "9976 MERIDOSIA RD",
"SITEADDRESS2": "IL"
},
"expected": {
"number": "9976",
"street": "MERIDOSIA RD",
"city": "",
"region": "IL",
"postcode": ""
}
}
]
}
}