/
douglas.json
61 lines (61 loc) · 1.86 KB
/
douglas.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
{
"coverage": {
"US Census": {
"geoid": "13097",
"name": "Douglas County",
"state": "Georgia"
},
"country": "us",
"state": "ga",
"county": "Douglas"
},
"data": "https://data.openaddresses.io/cache/uploads/trescube/db6c64/us-ga-douglas.geojson.zip",
"note": "sourced from http://www.gis.dcga.us/arcgis/rest/services/MapLayers/MapServer/13 using pyesridump (read times out)",
"protocol": "http",
"compression": "zip",
"conform": {
"format": "geojson",
"number": {
"function": "prefixed_number",
"field": "PropertyAddress"
},
"street": {
"function": "regexp",
"field": "PropertyAddress",
"pattern": "^(?:[0-9]+)(.+?)(?:\\s+(?:UNIT|APT|BLDG|STE)\\s+.+)?$"
},
"unit": {
"function": "regexp",
"field": "PropertyAddress",
"pattern": " ((?:UNIT|APT|BLDG|STE)\\s+.+)$"
}
},
"test": {
"enabled": true,
"description": "these are the tests that exercise extracting embedded units",
"acceptance-tests": [
{
"description": "address without unit",
"inputs": {
"PropertyAddress": "7392 BREEZE ST"
},
"expected": {
"number": "7392",
"street": "BREEZE ST",
"unit": ""
}
},
{
"description": "address with APT unit",
"inputs": {
"PropertyAddress": "13 CRESTVIEW DR APT A"
},
"expected": {
"number": "13",
"street": "CRESTVIEW DR",
"unit": "APT A"
}
}
]
}
}