-
-
Notifications
You must be signed in to change notification settings - Fork 846
/
curry.json
91 lines (91 loc) · 3.58 KB
/
curry.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
{
"coverage": {
"US Census": {
"geoid": "41015",
"name": "Curry County",
"state": "Oregon"
},
"country": "us",
"state": "or",
"county": "Curry"
},
"schema": 2,
"layers": {
"addresses": [
{
"name": "county",
"data": "https://gateway.maps.rlid.org/maps1/rest/services/Curry/GeneralMap/MapServer/20",
"website": "https://lcog.maps.arcgis.com/home/item.html?id=e2b4bec533c7406f9b0656859013d409",
"protocol": "ESRI",
"conform": {
"format": "geojson",
"number": {
"function": "prefixed_number",
"field": "CurryAssessmentRollExport_Situs_addr"
},
"street": {
"function": "regexp",
"field": "CurryAssessmentRollExport_Situs_addr",
"pattern": "^\\d+\\s+([^,]+)"
},
"unit": {
"function": "regexp",
"field": "CurryAssessmentRollExport_Situs_addr",
"pattern": "(?:,\\s+(.+))$"
},
"city": "CurryAssessmentRollExport_Situs_City",
"region": "CurryAssessmentRollExport_Situs_State",
"postcode": "CurryAssessmentRollExport_Situs_Zip"
},
"test": {
"enabled": true,
"description": "these are the tests that exercise valid inputs for Curry County",
"acceptance-tests": [
{
"description": "address with no unit",
"inputs": {
"CurryAssessmentRollExport_Situs_addr": "98171 TUTTLE LN"
},
"expected": {
"street": "TUTTLE LN",
"unit": ""
}
},
{
"description": "address with # unit",
"inputs": {
"CurryAssessmentRollExport_Situs_addr": "31084 CRABAPPLE WAY, #10"
},
"expected": {
"street": "CRABAPPLE WAY",
"unit": "#10"
}
},
{
"description": "address with unconventional unit",
"inputs": {
"CurryAssessmentRollExport_Situs_addr": "32051 WATSON LN, SP K"
},
"expected": {
"street": "WATSON LN",
"unit": "SP K"
}
}
]
}
}
],
"parcels": [
{
"name": "county",
"data": "https://gateway.maps.rlid.org/maps1/rest/services/Curry/GeneralMap/MapServer/20",
"website": "https://lcog.maps.arcgis.com/home/item.html?id=e2b4bec533c7406f9b0656859013d409",
"protocol": "ESRI",
"conform": {
"format": "geojson",
"pid": "MapTaxlot"
}
}
]
}
}