/
lauderdale.json
106 lines (106 loc) · 3.42 KB
/
lauderdale.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"coverage": {
"US Census": {
"geoid": "28075",
"name": "Lauderdale County",
"state": "Mississippi"
},
"country": "us",
"state": "ms",
"county": "Lauderdale"
},
"data": "https://services7.arcgis.com/deoj2Y8l1tBr7P5X/ArcGIS/rest/services/LauderdaleService/FeatureServer/4",
"type": "ESRI",
"conform": {
"type": "geojson",
"number": "STREET_NUM",
"street": {
"function": "regexp",
"field": "STREET",
"pattern": "(.+?)(?:\\s+[A-DF-MO-RT-VX-Z])?$"
},
"unit": {
"function": "regexp",
"field": "STREET",
"pattern": "\\s+([A-DF-MO-RT-VX-Z])$"
}
},
"test": {
"enabled": true,
"description": "this source puts the alpha unit designator at the end of the street name",
"acceptance-tests": [
{
"description": "address with 'W' directional at end should not be considered unit",
"inputs": {
"STREET_NUM": "9803",
"STREET": "BARMER LANE W"
},
"expected": {
"number": "9803",
"street": "BARMER LANE W",
"unit": ""
}
},
{
"description": "address with 'E' directional at end should not be considered unit",
"inputs": {
"STREET_NUM": "9803",
"STREET": "BARMER LANE E"
},
"expected": {
"number": "9803",
"street": "BARMER LANE E",
"unit": ""
}
},
{
"description": "address with 'N' directional at end should not be considered unit",
"inputs": {
"STREET_NUM": "9803",
"STREET": "BARMER LANE N"
},
"expected": {
"number": "9803",
"street": "BARMER LANE N",
"unit": ""
}
},
{
"description": "address with 'S' directional at end should not be considered unit",
"inputs": {
"STREET_NUM": "9803",
"STREET": "BARMER LANE S"
},
"expected": {
"number": "9803",
"street": "BARMER LANE S",
"unit": ""
}
},
{
"description": "address with non-directional at end should be considered unit",
"inputs": {
"STREET_NUM": "9803",
"STREET": "BARMER LANE A"
},
"expected": {
"number": "9803",
"street": "BARMER LANE",
"unit": "A"
}
},
{
"description": "address with non-directional at end should be considered unit",
"inputs": {
"STREET_NUM": "9803",
"STREET": "BARMER LANE B"
},
"expected": {
"number": "9803",
"street": "BARMER LANE",
"unit": "B"
}
}
]
}
}