/
white.json
74 lines (74 loc) · 2.22 KB
/
white.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": "17193",
"name": "White County",
"state": "Illinois"
},
"country": "us",
"state": "il",
"county": "White"
},
"data": "https://services.arcgis.com/4YineAQdtmx0tv46/ArcGIS/rest/services/WhiteILFeatures/FeatureServer/3",
"protocol": "ESRI",
"conform": {
"format": "geojson",
"number": {
"function": "prefixed_number",
"field": "TSC_Site_Address"
},
"street": {
"function": "postfixed_street",
"field": "TSC_Site_Address"
},
"city": {
"function": "regexp",
"field": "TSC_Site_CityStateZip",
"pattern": "^(.+?)\\s+IL"
},
"region": {
"function": "regexp",
"field": "TSC_Site_CityStateZip",
"pattern": "\\b(IL)\\b"
},
"postcode": {
"function": "regexp",
"field": "TSC_Site_CityStateZip",
"pattern": "(\\d+)$"
}
},
"test": {
"enabled": true,
"description": "these are the tests that exercise valid inputs for czech countrywide",
"acceptance-tests": [
{
"description": "has city/state/zip",
"inputs": {
"TSC_Site_Address": "216 E COMMERCE ST",
"TSC_Site_CityStateZip": "GRAYVILLE IL 62844"
},
"expected": {
"number": "216",
"street": "E COMMERCE ST",
"city": "GRAYVILLE",
"region": "IL",
"postcode": "62844"
}
},
{
"description": "has city/state, no zip",
"inputs": {
"TSC_Site_Address": "220 E COMMERCE ST",
"TSC_Site_CityStateZip": "GRAYVILLE IL"
},
"expected": {
"number": "220",
"street": "E COMMERCE ST",
"city": "GRAYVILLE",
"region": "IL",
"postcode": ""
}
}
]
}
}