/
hall.json
73 lines (73 loc) · 2.13 KB
/
hall.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
{
"coverage": {
"US Census": {
"geoid": "13139",
"name": "Hall County",
"state": "Georgia"
},
"country": "us",
"state": "ga",
"county": "Hall"
},
"data": "http://maps.hallcounty.org/public/rest/services/AddressPoints/MapServer/0",
"type": "ESRI",
"conform": {
"type": "geojson",
"number": "ADDR_ST_NMBR",
"street": {
"function": "remove_prefix",
"field": "SITE_LOCATION_ABRV",
"field_to_remove": "ADDR_ST_NMBR"
},
"unit": {
"function": "regexp",
"field": "STNO_UNIT",
"pattern": "-(.+)"
}
},
"test": {
"enabled": true,
"description": "units are appended to number w/hyphen",
"acceptance-tests": [
{
"description": "address without unit",
"inputs": {
"ADDR_ST_NMBR": "950",
"SITE_LOCATION_ABRV": "950 INDUSTRIAL BLVD",
"STNO_UNIT": "950"
},
"expected": {
"number": "950",
"street": "INDUSTRIAL BLVD",
"unit": ""
}
},
{
"description": "address with unit",
"inputs": {
"ADDR_ST_NMBR": "1400",
"SITE_LOCATION_ABRV": "1400 MARLER ST",
"STNO_UNIT": "1400-1"
},
"expected": {
"number": "1400",
"street": "MARLER ST",
"unit": "1"
}
},
{
"description": "address with alpha unit",
"inputs": {
"ADDR_ST_NMBR": "4",
"SITE_LOCATION_ABRV": "4 STALLWORTH ST",
"STNO_UNIT": "4-C1/2"
},
"expected": {
"number": "4",
"street": "STALLWORTH ST",
"unit": "C1/2"
}
}
]
}
}