/
galveston.json
117 lines (117 loc) · 5.67 KB
/
galveston.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
{
"coverage": {
"US Census": {
"geoid": "48167",
"name": "Galveston County",
"state": "Texas"
},
"country": "us",
"state": "tx",
"county": "Galveston"
},
"schema": 2,
"layers": {
"addresses": [
{
"name": "county",
"data": "http://services2.arcgis.com/7Zo7vX4Yxo9Z7Vw3/ArcGIS/rest/services/MyMapService/FeatureServer/0",
"protocol": "ESRI",
"conform": {
"number": "SITUS_NO",
"street": {
"function": "regexp",
"field": "SITUS",
"pattern": "^\\s*(?:[\\d]+(?:[\\s-]\\d\\s*/\\s*\\d)?|\\d+-\\d+|\\d+-?[A-Z])\\s*(.*?)(?=,| (?:UNITS?|TRA?I?LE?RS?|SU?I?TES?|SPA?CE?S?|REAR|LOTS?|FRO?NT|FLO?O?R?S?|BU?I?LDI?N?GS?|APA?R?T?M?E?N?TS?)\\b|(?: (?:TIKI ISLAND|TEXAS CITY|SANTA FE|SAN LEON|PORT BOLIVAR|LEAGUE CITY|LA MARQUE|KEMAH|JAMAICA BEACH|HITCHCOCK|HIGH ISLAND|GILCHRIST|GALVESTON|FRIENDSWOOD|DICKINSON|CRYSTAL BEACH|CLEAR LAKE SHORES|CAPLEN|BOLIVAR PENINSULA|BAYVIEW|BAYOU VISTA|BACLIFF|ALTA LOMA|ALGOA),?\\s*TX\\s*(?:[,\\s]\\s*[0-9]{5}(?:\\-[0-9]{4})?)?$))"
},
"unit": {
"function": "regexp",
"field": "SITUS",
"pattern": "^(?:.*?),?(?: )?((?:(?:UNITS?|TRA?I?LE?RS?|SU?I?TES?|SPA?CE?S?|LOTS?|FLO?O?R?S?|BU?I?LDI?N?GS?|APA?R?T?M?E?N?TS?)(?:\\s*#|\\s+(?:NUMB?E?R?S?|NOS?\\.?))?\\s*(?:(?:[0-9]+[A-Z]?|[A-Z])(?:[,\\s]\\s*(?:[0-9]+[A-Z]?|[A-Z]))(?![A-Z]))*\\s*(?:&|AND)?\\s*[0-9]*(?:[A-Z](?![A-Z]))?)|(?:REAR|FRO?NT)\\b)(?:.*)$"
},
"city": {
"function": "regexp",
"field": "SITUS",
"pattern": "^(?:.*?)(?<=[\\s,0-9])(TIKI ISLAND|TEXAS CITY|SANTA FE|SAN LEON|PORT BOLIVAR|LEAGUE CITY|LA MARQUE|KEMAH|JAMAICA BEACH|HITCHCOCK|HIGH ISLAND|GILCHRIST|GALVESTON|FRIENDSWOOD|DICKINSON|CRYSTAL BEACH|CLEAR LAKE SHORES|CAPLEN|BOLIVAR PENINSULA|BAYVIEW|BAYOU VISTA|BACLIFF|ALTA LOMA|ALGOA),?\\s*TX\\s*(?:[,\\s]\\s*[0-9]{5}(?:\\-0-9{4})?)?$"
},
"region": {
"function": "regexp",
"field": "SITUS",
"pattern": "^.*?,?\\s*(TX)\\s*(?:[,\\s]\\s*[0-9]{5}(?:\\-[0-9]{4})?)?$"
},
"postcode": {
"function": "regexp",
"field": "SITUS",
"pattern": "^.*?([0-9]{5}(?:\\-[0-9]{4})?)$"
},
"format": "geojson"
},
"test": {
"enabled": true,
"description": "Galveston SITUS address tests",
"acceptance-tests": [
{
"description": "c50b293-1",
"inputs": {
"situs": "27030 ESTUARY DR, UNIT #101, GALVESTON, TX 77554",
"situs_no": "27030"
},
"expected": {
"number": "27030",
"unit": "UNIT #101",
"street": "ESTUARY DR",
"city": "GALVESTON",
"region": "TX",
"postcode": "77554"
}
},
{
"description": "c50b293-2",
"inputs": {
"situs": "27130 ESTUARY DR, GALVESTON, TX 77554",
"situs_no": "27130"
},
"expected": {
"number": "27130",
"unit": "",
"street": "ESTUARY DR",
"city": "GALVESTON",
"region": "TX",
"postcode": "77554"
}
},
{
"description": "5355d90-1",
"inputs": {
"situs": "27030 ESTUARY DR UNIT 101GALVESTON, TX 77554",
"situs_no": "27030"
},
"expected": {
"number": "27030",
"unit": "UNIT 101",
"street": "ESTUARY DR",
"city": "GALVESTON",
"region": "TX",
"postcode": "77554"
}
},
{
"description": "5355d90-2",
"inputs": {
"situs": "27130 ESTUARY DR GALVESTON, TX 77554",
"situs_no": "27130"
},
"expected": {
"number": "27130",
"unit": "",
"street": "ESTUARY DR",
"city": "GALVESTON",
"region": "TX",
"postcode": "77554"
}
}
]
}
}
]
}
}