/
statewide.json
69 lines (69 loc) · 2.04 KB
/
statewide.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
{
"coverage": {
"US Census": {
"geoid": "56",
"state": "Wyoming"
},
"country": "us",
"state": "wy"
},
"data": "https://data.openaddresses.io/cache/uploads/iandees/96d690/wyoming_parcels.geojson.zip",
"note": "Exported with esri2geojson from http://gis.wyo.gov/arcgis/rest/services/ets/ParcelsSecure/MapServer/0 with login parceluser/Parcels2016 from Nancy von Mayer",
"protocol": "http",
"compression": "zip",
"conform": {
"format": "geojson",
"id": "PARCELNO",
"number": {
"function": "regexp",
"field": "LOCATIONADDRESS",
"pattern": "^([0-9]+)"
},
"unit": {
"function": "regexp",
"field": "LOCATIONADDRESS",
"pattern": "^(?:[0-9]+ )(?:.*?)( {2}.*)$"
},
"street": {
"function": "regexp",
"field": "LOCATIONADDRESS",
"pattern": "^(?:[0-9]+ )(.*?)(?: {2}.*)?$",
"replace": "$1"
}
},
"test": {
"enabled": true,
"description": "Ensure Valid Regex for Unit Numbers",
"acceptance-tests": [{
"description": "Parse address with no unit",
"inputs": {
"LOCATIONADDRESS": "100 N 9TH ST"
},
"expected": {
"number": "100",
"street": "N 9TH ST",
"unit": ""
}
},{
"description": "Parse address with unit",
"inputs": {
"LOCATIONADDRESS": "100 N 7TH ST A"
},
"expected": {
"number": "100",
"street": "N 7TH ST",
"unit": "A"
}
},{
"description": "Parse address with unit",
"inputs": {
"LOCATIONADDRESS": "100 MITCHELL ST F-6"
},
"expected": {
"number": "100",
"street": "MITCHELL ST",
"unit": "F-6"
}
}]
}
}