/
city_of_mckinney.json
87 lines (87 loc) · 2.61 KB
/
city_of_mckinney.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
{
"coverage": {
"geometry": {
"type": "Point",
"coordinates": [ -96.6134262084961, 33.196609461052844 ]
},
"US Census": {
"geoid": "4845744",
"name": "City of McKinney",
"state": "Texas"
},
"country": "us",
"state": "tx",
"county": "Taylor",
"city": "McKinney"
},
"data": "http://maps.mckinneytexas.org/mckinney/rest/services/OpenData/Property_Ownership/MapServer/0",
"type": "ESRI",
"conform": {
"type": "geojson",
"number": {
"function": "prefixed_number",
"field": "SitusAdd"
},
"street": {
"function": "regexp",
"field": "SitusAdd",
"pattern": "^\\d+\\s(.+?)(?:\\s(?:BLDG|STE)\\s+\\w+\\s*)?$"
},
"unit": {
"function": "regexp",
"field": "SitusAdd",
"pattern": "^\\d+\\s.+?(\\s(?:BLDG|STE)\\s+\\w+\\s*)$"
},
"city": "CITY"
},
"test": {
"enabled": true,
"description": "tests that verify that units are being extracted",
"acceptance-tests": [
{
"description": "address without unit",
"inputs": {
"SitusAdd": "1003 W LAMAR ST"
},
"expected": {
"number": "1003",
"street": "W LAMAR ST",
"unit": ""
}
},
{
"description": "address with BLDG numeric-only unit",
"inputs": {
"SitusAdd": "900 S TENNESSEE ST BLDG 1"
},
"expected": {
"number": "900",
"street": "S TENNESSEE ST",
"unit": "BLDG 1"
}
},
{
"description": "address with BLDG alpha-numeric unit",
"inputs": {
"SitusAdd": "900 S TENNESSEE ST BLDG 11A"
},
"expected": {
"number": "900",
"street": "S TENNESSEE ST",
"unit": "BLDG 11A"
}
},
{
"description": "address with STE numeric-only unit",
"inputs": {
"SitusAdd": "5610 N MCDONALD ST STE C"
},
"expected": {
"number": "5610",
"street": "N MCDONALD ST",
"unit": "STE C"
}
}
]
}
}