/
city_of_colleyville.json
121 lines (121 loc) · 3.81 KB
/
city_of_colleyville.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"coverage": {
"geometry": {
"type": "Point",
"coordinates": [
-97.148,
32.891
]
},
"US Census": {
"geoid": "4815988",
"name": "City of Colleyville",
"state": "Texas"
},
"country": "us",
"state": "tx",
"city": "Colleyville"
},
"data": "http://gis4.dfwmaps.com/arcgis/rest/services/ICColleyville/Colleyville_BaseLayers_VE/MapServer/1",
"type": "ESRI",
"conform": {
"type": "geojson",
"number": {
"function": "prefixed_number",
"field": "Situs_Addr"
},
"street": {
"function": "regexp",
"field": "Situs_Addr",
"pattern": "^\\d+\\s(.+?)(?:\\s+(?:#|STE)\\s+(?:\\d+|[A-Z]|\\d+\\s+\\d+)?)?\\s*$"
},
"unit": {
"function": "regexp",
"field": "Situs_Addr",
"pattern": "^\\d+\\s.+?(\\s+(?:#|STE)\\s+(?:\\d+|[A-Z]|\\d+\\s+\\d+))\\s*$"
}
},
"test": {
"enabled": true,
"description": "these are the tests that exercise valid inputs for Colleyville, TX (trailing spaces are found in source data)",
"acceptance-tests": [
{
"description": "address without unit",
"inputs": {
"Situs_Addr": "124 TIMBERLINE DR N "
},
"expected": {
"number": "124",
"street": "TIMBERLINE DR N",
"unit": ""
}
},
{
"description": "address with numeric unit",
"inputs": {
"Situs_Addr": "4900 COLLEYVILLE BLVD STE 108 "
},
"expected": {
"number": "4900",
"street": "COLLEYVILLE BLVD",
"unit": "STE 108"
}
},
{
"description": "address with alpha unit",
"inputs": {
"Situs_Addr": "6228 COLLEYVILLE BLVD STE A "
},
"expected": {
"number": "6228",
"street": "COLLEYVILLE BLVD",
"unit": "STE A"
}
},
{
"description": "address with numeric # unit",
"inputs": {
"Situs_Addr": "53 PIAZZA LN # 112 "
},
"expected": {
"number": "53",
"street": "PIAZZA LN",
"unit": "# 112"
}
},
{
"description": "address with multi-numeric # unit",
"inputs": {
"Situs_Addr": "88 VILLAGE LN # 28 610 "
},
"expected": {
"number": "88",
"street": "VILLAGE LN",
"unit": "# 28 610"
}
},
{
"description": "address with hint of unit but no actual unit",
"inputs": {
"Situs_Addr": "101 CHEEK SPARGER RD # "
},
"expected": {
"number": "101",
"street": "CHEEK SPARGER RD",
"unit": ""
}
},
{
"description": "address with alpha # unit",
"inputs": {
"Situs_Addr": "1901 JOHN MCCAIN RD # A "
},
"expected": {
"number": "1901",
"street": "JOHN MCCAIN RD",
"unit": "# A"
}
}
]
}
}