@urbankitstudio/atlas 0.6.29 → 0.6.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -1
- package/data/city-property/atlanta.json +42 -0
- package/data/city-property/austin.json +61 -0
- package/data/city-property/boston.json +62 -0
- package/data/city-property/charlotte.json +40 -0
- package/data/city-property/chicago.json +61 -0
- package/data/city-property/columbus.json +65 -0
- package/data/city-property/dallas.json +61 -0
- package/data/city-property/denver.json +38 -0
- package/data/city-property/detroit.json +58 -0
- package/data/city-property/index.json +266 -0
- package/data/city-property/kansas-city.json +64 -0
- package/data/city-property/las-vegas.json +57 -0
- package/data/city-property/milwaukee.json +37 -0
- package/data/city-property/nashville.json +61 -0
- package/data/city-property/nyc.json +63 -0
- package/data/city-property/philadelphia.json +62 -0
- package/data/city-property/phoenix.json +41 -0
- package/data/city-property/san-antonio.json +56 -0
- package/data/city-property/san-francisco.json +60 -0
- package/data/city-property/seattle.json +63 -0
- package/data/city-property/washington-dc.json +37 -0
- package/data/city-zoning/atlanta.json +49 -0
- package/data/city-zoning/austin.json +114 -0
- package/data/city-zoning/boise.json +41 -0
- package/data/city-zoning/boston.json +51 -0
- package/data/city-zoning/charlotte.json +42 -0
- package/data/city-zoning/dallas.json +33 -0
- package/data/city-zoning/denver.json +45 -0
- package/data/city-zoning/durham.json +39 -0
- package/data/city-zoning/fort-worth.json +44 -0
- package/data/city-zoning/index.json +174 -0
- package/data/city-zoning/indianapolis.json +50 -0
- package/data/city-zoning/los-angeles.json +32 -0
- package/data/city-zoning/nashville.json +45 -0
- package/data/city-zoning/new-orleans.json +49 -0
- package/data/city-zoning/nyc.json +53 -0
- package/data/city-zoning/raleigh.json +45 -0
- package/data/city-zoning/tampa.json +40 -0
- package/data/city-zoning/washington-dc.json +42 -0
- package/dist/index.cjs +3059 -0
- package/dist/index.d.cts +485 -1
- package/dist/index.d.ts +485 -1
- package/dist/index.js +3035 -1
- package/package.json +10 -3
package/dist/index.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
function offersAttributeSearch(endpoint) {
|
|
3
3
|
return !!endpoint && endpoint.attributeSearch !== "unsupported";
|
|
4
4
|
}
|
|
5
|
+
function offersPagination(endpoint) {
|
|
6
|
+
return !!endpoint && endpoint.supportsPagination !== false;
|
|
7
|
+
}
|
|
5
8
|
function countyOffersAttributeSearch(county) {
|
|
6
9
|
const endpoints = Array.isArray(county.endpoints) ? county.endpoints : [];
|
|
7
10
|
return endpoints.some(offersAttributeSearch);
|
|
@@ -28978,4 +28981,3035 @@ function countyPath(stateSlug, countySlug) {
|
|
|
28978
28981
|
return `/parcel-atlas/${stateSlug}/${countySlug}`;
|
|
28979
28982
|
}
|
|
28980
28983
|
|
|
28981
|
-
|
|
28984
|
+
// data/city-property/index.json
|
|
28985
|
+
var city_property_default = {
|
|
28986
|
+
lastUpdated: "2026-10-12",
|
|
28987
|
+
cities: [
|
|
28988
|
+
{
|
|
28989
|
+
slug: "dallas",
|
|
28990
|
+
city: "Dallas",
|
|
28991
|
+
state: "Texas",
|
|
28992
|
+
stateAbbrev: "TX",
|
|
28993
|
+
countyName: "Dallas County",
|
|
28994
|
+
countySlug: "dallas-county",
|
|
28995
|
+
populated: true,
|
|
28996
|
+
provider: "City of Dallas Open Data (Socrata)",
|
|
28997
|
+
datasets: [
|
|
28998
|
+
"violations",
|
|
28999
|
+
"permits"
|
|
29000
|
+
]
|
|
29001
|
+
},
|
|
29002
|
+
{
|
|
29003
|
+
slug: "chicago",
|
|
29004
|
+
city: "Chicago",
|
|
29005
|
+
state: "Illinois",
|
|
29006
|
+
stateAbbrev: "IL",
|
|
29007
|
+
countyName: "Cook County",
|
|
29008
|
+
countySlug: "cook-county",
|
|
29009
|
+
populated: true,
|
|
29010
|
+
provider: "Chicago Data Portal (Socrata)",
|
|
29011
|
+
datasets: [
|
|
29012
|
+
"violations",
|
|
29013
|
+
"permits"
|
|
29014
|
+
]
|
|
29015
|
+
},
|
|
29016
|
+
{
|
|
29017
|
+
slug: "nashville",
|
|
29018
|
+
city: "Nashville",
|
|
29019
|
+
state: "Tennessee",
|
|
29020
|
+
stateAbbrev: "TN",
|
|
29021
|
+
countyName: "Davidson County",
|
|
29022
|
+
countySlug: "davidson-county",
|
|
29023
|
+
populated: true,
|
|
29024
|
+
provider: "Metro Nashville Open Data (ArcGIS)",
|
|
29025
|
+
datasets: [
|
|
29026
|
+
"violations",
|
|
29027
|
+
"permits"
|
|
29028
|
+
]
|
|
29029
|
+
},
|
|
29030
|
+
{
|
|
29031
|
+
slug: "austin",
|
|
29032
|
+
city: "Austin",
|
|
29033
|
+
state: "Texas",
|
|
29034
|
+
stateAbbrev: "TX",
|
|
29035
|
+
countyName: "Travis County",
|
|
29036
|
+
countySlug: "travis-county",
|
|
29037
|
+
populated: true,
|
|
29038
|
+
provider: "City of Austin Open Data (Socrata)",
|
|
29039
|
+
datasets: [
|
|
29040
|
+
"violations",
|
|
29041
|
+
"permits"
|
|
29042
|
+
]
|
|
29043
|
+
},
|
|
29044
|
+
{
|
|
29045
|
+
slug: "seattle",
|
|
29046
|
+
city: "Seattle",
|
|
29047
|
+
state: "Washington",
|
|
29048
|
+
stateAbbrev: "WA",
|
|
29049
|
+
countyName: "King County",
|
|
29050
|
+
countySlug: "king-county",
|
|
29051
|
+
populated: true,
|
|
29052
|
+
provider: "City of Seattle Open Data (Socrata)",
|
|
29053
|
+
datasets: [
|
|
29054
|
+
"violations",
|
|
29055
|
+
"permits"
|
|
29056
|
+
]
|
|
29057
|
+
},
|
|
29058
|
+
{
|
|
29059
|
+
slug: "nyc",
|
|
29060
|
+
city: "New York City",
|
|
29061
|
+
state: "New York",
|
|
29062
|
+
stateAbbrev: "NY",
|
|
29063
|
+
populated: true,
|
|
29064
|
+
provider: "NYC Open Data (Socrata)",
|
|
29065
|
+
datasets: [
|
|
29066
|
+
"violations",
|
|
29067
|
+
"permits"
|
|
29068
|
+
]
|
|
29069
|
+
},
|
|
29070
|
+
{
|
|
29071
|
+
slug: "san-francisco",
|
|
29072
|
+
city: "San Francisco",
|
|
29073
|
+
state: "California",
|
|
29074
|
+
stateAbbrev: "CA",
|
|
29075
|
+
populated: true,
|
|
29076
|
+
provider: "DataSF (Socrata)",
|
|
29077
|
+
datasets: [
|
|
29078
|
+
"violations",
|
|
29079
|
+
"permits"
|
|
29080
|
+
]
|
|
29081
|
+
},
|
|
29082
|
+
{
|
|
29083
|
+
slug: "detroit",
|
|
29084
|
+
city: "Detroit",
|
|
29085
|
+
state: "Michigan",
|
|
29086
|
+
stateAbbrev: "MI",
|
|
29087
|
+
populated: true,
|
|
29088
|
+
provider: "City of Detroit Open Data (ArcGIS)",
|
|
29089
|
+
datasets: [
|
|
29090
|
+
"violations",
|
|
29091
|
+
"permits"
|
|
29092
|
+
]
|
|
29093
|
+
},
|
|
29094
|
+
{
|
|
29095
|
+
slug: "las-vegas",
|
|
29096
|
+
city: "Las Vegas",
|
|
29097
|
+
state: "Nevada",
|
|
29098
|
+
stateAbbrev: "NV",
|
|
29099
|
+
countyName: "Clark County",
|
|
29100
|
+
countySlug: "clark-county",
|
|
29101
|
+
populated: true,
|
|
29102
|
+
provider: "City of Las Vegas Open Data (ArcGIS)",
|
|
29103
|
+
datasets: [
|
|
29104
|
+
"violations",
|
|
29105
|
+
"permits"
|
|
29106
|
+
]
|
|
29107
|
+
},
|
|
29108
|
+
{
|
|
29109
|
+
slug: "kansas-city",
|
|
29110
|
+
city: "Kansas City",
|
|
29111
|
+
state: "Missouri",
|
|
29112
|
+
stateAbbrev: "MO",
|
|
29113
|
+
countyName: "Jackson County",
|
|
29114
|
+
countySlug: "jackson-county",
|
|
29115
|
+
populated: true,
|
|
29116
|
+
provider: "OpenDataKC (Socrata)",
|
|
29117
|
+
datasets: [
|
|
29118
|
+
"violations",
|
|
29119
|
+
"permits"
|
|
29120
|
+
]
|
|
29121
|
+
},
|
|
29122
|
+
{
|
|
29123
|
+
slug: "columbus",
|
|
29124
|
+
city: "Columbus",
|
|
29125
|
+
state: "Ohio",
|
|
29126
|
+
stateAbbrev: "OH",
|
|
29127
|
+
countyName: "Franklin County",
|
|
29128
|
+
countySlug: "franklin-county",
|
|
29129
|
+
populated: true,
|
|
29130
|
+
provider: "City of Columbus (ArcGIS)",
|
|
29131
|
+
datasets: [
|
|
29132
|
+
"violations",
|
|
29133
|
+
"permits"
|
|
29134
|
+
]
|
|
29135
|
+
},
|
|
29136
|
+
{
|
|
29137
|
+
slug: "boston",
|
|
29138
|
+
city: "Boston",
|
|
29139
|
+
state: "Massachusetts",
|
|
29140
|
+
stateAbbrev: "MA",
|
|
29141
|
+
populated: true,
|
|
29142
|
+
provider: "Analyze Boston (CKAN)",
|
|
29143
|
+
datasets: [
|
|
29144
|
+
"violations",
|
|
29145
|
+
"permits"
|
|
29146
|
+
]
|
|
29147
|
+
},
|
|
29148
|
+
{
|
|
29149
|
+
slug: "san-antonio",
|
|
29150
|
+
city: "San Antonio",
|
|
29151
|
+
state: "Texas",
|
|
29152
|
+
stateAbbrev: "TX",
|
|
29153
|
+
populated: true,
|
|
29154
|
+
provider: "City of San Antonio Open Data (CKAN + ArcGIS 311)",
|
|
29155
|
+
datasets: [
|
|
29156
|
+
"violations",
|
|
29157
|
+
"permits"
|
|
29158
|
+
]
|
|
29159
|
+
},
|
|
29160
|
+
{
|
|
29161
|
+
slug: "milwaukee",
|
|
29162
|
+
city: "Milwaukee",
|
|
29163
|
+
state: "Wisconsin",
|
|
29164
|
+
stateAbbrev: "WI",
|
|
29165
|
+
populated: true,
|
|
29166
|
+
provider: "Milwaukee Open Data (CKAN)",
|
|
29167
|
+
datasets: [
|
|
29168
|
+
"permits"
|
|
29169
|
+
]
|
|
29170
|
+
},
|
|
29171
|
+
{
|
|
29172
|
+
slug: "charlotte",
|
|
29173
|
+
city: "Charlotte",
|
|
29174
|
+
state: "North Carolina",
|
|
29175
|
+
stateAbbrev: "NC",
|
|
29176
|
+
countyName: "Mecklenburg County",
|
|
29177
|
+
countySlug: "mecklenburg-county",
|
|
29178
|
+
populated: true,
|
|
29179
|
+
provider: "City of Charlotte GIS (ArcGIS)",
|
|
29180
|
+
datasets: [
|
|
29181
|
+
"violations"
|
|
29182
|
+
]
|
|
29183
|
+
},
|
|
29184
|
+
{
|
|
29185
|
+
slug: "denver",
|
|
29186
|
+
city: "Denver",
|
|
29187
|
+
state: "Colorado",
|
|
29188
|
+
stateAbbrev: "CO",
|
|
29189
|
+
countyName: "Denver County",
|
|
29190
|
+
countySlug: "denver-county",
|
|
29191
|
+
populated: true,
|
|
29192
|
+
provider: "Denver Open Data (ArcGIS)",
|
|
29193
|
+
datasets: [
|
|
29194
|
+
"permits"
|
|
29195
|
+
]
|
|
29196
|
+
},
|
|
29197
|
+
{
|
|
29198
|
+
slug: "washington-dc",
|
|
29199
|
+
city: "Washington, DC",
|
|
29200
|
+
state: "District of Columbia",
|
|
29201
|
+
stateAbbrev: "DC",
|
|
29202
|
+
countySlug: "district-of-columbia",
|
|
29203
|
+
populated: true,
|
|
29204
|
+
provider: "Open Data DC (ArcGIS)",
|
|
29205
|
+
datasets: [
|
|
29206
|
+
"permits"
|
|
29207
|
+
]
|
|
29208
|
+
},
|
|
29209
|
+
{
|
|
29210
|
+
slug: "philadelphia",
|
|
29211
|
+
city: "Philadelphia",
|
|
29212
|
+
state: "Pennsylvania",
|
|
29213
|
+
stateAbbrev: "PA",
|
|
29214
|
+
countyName: "Philadelphia County",
|
|
29215
|
+
countySlug: "philadelphia-county",
|
|
29216
|
+
populated: true,
|
|
29217
|
+
provider: "OpenDataPhilly / City of Philadelphia L&I (CARTO)",
|
|
29218
|
+
datasets: [
|
|
29219
|
+
"violations",
|
|
29220
|
+
"permits"
|
|
29221
|
+
]
|
|
29222
|
+
},
|
|
29223
|
+
{
|
|
29224
|
+
slug: "atlanta",
|
|
29225
|
+
city: "Atlanta",
|
|
29226
|
+
state: "Georgia",
|
|
29227
|
+
stateAbbrev: "GA",
|
|
29228
|
+
countyName: "Fulton County",
|
|
29229
|
+
countySlug: "fulton-county",
|
|
29230
|
+
populated: true,
|
|
29231
|
+
provider: "City of Atlanta GIS (ArcGIS)",
|
|
29232
|
+
datasets: [
|
|
29233
|
+
"permits"
|
|
29234
|
+
]
|
|
29235
|
+
},
|
|
29236
|
+
{
|
|
29237
|
+
slug: "phoenix",
|
|
29238
|
+
city: "Phoenix",
|
|
29239
|
+
state: "Arizona",
|
|
29240
|
+
stateAbbrev: "AZ",
|
|
29241
|
+
countyName: "Maricopa County",
|
|
29242
|
+
countySlug: "maricopa-county",
|
|
29243
|
+
populated: true,
|
|
29244
|
+
provider: "City of Phoenix GIS (ArcGIS)",
|
|
29245
|
+
datasets: [
|
|
29246
|
+
"permits"
|
|
29247
|
+
]
|
|
29248
|
+
}
|
|
29249
|
+
]
|
|
29250
|
+
};
|
|
29251
|
+
|
|
29252
|
+
// data/city-property/dallas.json
|
|
29253
|
+
var dallas_default = {
|
|
29254
|
+
slug: "dallas",
|
|
29255
|
+
city: "Dallas",
|
|
29256
|
+
state: "Texas",
|
|
29257
|
+
stateAbbrev: "TX",
|
|
29258
|
+
countyName: "Dallas County",
|
|
29259
|
+
countySlug: "dallas-county",
|
|
29260
|
+
lastVerified: "2026-06-28",
|
|
29261
|
+
scopeNote: "Covers properties inside the City of Dallas city limits. Other Dallas County municipalities (Irving, Garland, Mesquite, Richardson, and the rest) keep their own permit and code-enforcement records.",
|
|
29262
|
+
datasets: {
|
|
29263
|
+
violations: {
|
|
29264
|
+
kind: "violations",
|
|
29265
|
+
tabLabel: "Code Violations",
|
|
29266
|
+
type: "socrata",
|
|
29267
|
+
url: "https://www.dallasopendata.com/resource/x9pz-kdq9.json",
|
|
29268
|
+
orderField: "created",
|
|
29269
|
+
coverage: "City code-enforcement service requests reported 2013 to 2018.",
|
|
29270
|
+
recordLabel: "Service request",
|
|
29271
|
+
openedLabel: "Reported",
|
|
29272
|
+
closedLabel: "Updated",
|
|
29273
|
+
fields: {
|
|
29274
|
+
address: "str_nam",
|
|
29275
|
+
addressParts: ["str_num", "str_prefix", "str_nam", "str_suffix"],
|
|
29276
|
+
recordNumber: "service_request",
|
|
29277
|
+
type: "type",
|
|
29278
|
+
description: "nuisance",
|
|
29279
|
+
status: "status",
|
|
29280
|
+
openedDate: "created",
|
|
29281
|
+
closedDate: "updated",
|
|
29282
|
+
zip: "zone"
|
|
29283
|
+
}
|
|
29284
|
+
},
|
|
29285
|
+
permits: {
|
|
29286
|
+
kind: "permits",
|
|
29287
|
+
tabLabel: "Building Permits",
|
|
29288
|
+
type: "socrata",
|
|
29289
|
+
url: "https://www.dallasopendata.com/resource/e7gq-4sah.json",
|
|
29290
|
+
coverage: "City building permits issued through 2020.",
|
|
29291
|
+
recordLabel: "Permit",
|
|
29292
|
+
openedLabel: "Issued",
|
|
29293
|
+
fields: {
|
|
29294
|
+
address: "street_address",
|
|
29295
|
+
recordNumber: "permit_number",
|
|
29296
|
+
type: "permit_type",
|
|
29297
|
+
description: "work_description",
|
|
29298
|
+
contractor: "contractor",
|
|
29299
|
+
value: "value",
|
|
29300
|
+
openedDate: "issued_date",
|
|
29301
|
+
zip: "zip_code"
|
|
29302
|
+
}
|
|
29303
|
+
}
|
|
29304
|
+
},
|
|
29305
|
+
source: {
|
|
29306
|
+
name: "City of Dallas Open Data",
|
|
29307
|
+
url: "https://www.dallasopendata.com/",
|
|
29308
|
+
license: "Public domain (City of Dallas)",
|
|
29309
|
+
portalLabel: "City of Dallas Open Data portal",
|
|
29310
|
+
currentRecordsNote: "For current permits and open code cases, use the City of Dallas Development Services portal.",
|
|
29311
|
+
currentRecordsUrl: "https://dallascityhall.com/departments/sustainabledevelopment/Pages/default.aspx"
|
|
29312
|
+
}
|
|
29313
|
+
};
|
|
29314
|
+
|
|
29315
|
+
// data/city-property/chicago.json
|
|
29316
|
+
var chicago_default = {
|
|
29317
|
+
slug: "chicago",
|
|
29318
|
+
city: "Chicago",
|
|
29319
|
+
state: "Illinois",
|
|
29320
|
+
stateAbbrev: "IL",
|
|
29321
|
+
countyName: "Cook County",
|
|
29322
|
+
countySlug: "cook-county",
|
|
29323
|
+
lastVerified: "2026-06-28",
|
|
29324
|
+
scopeNote: "Covers properties inside the City of Chicago. Suburban Cook County municipalities keep their own permit and code-enforcement records.",
|
|
29325
|
+
datasets: {
|
|
29326
|
+
violations: {
|
|
29327
|
+
kind: "violations",
|
|
29328
|
+
tabLabel: "Building Violations",
|
|
29329
|
+
type: "socrata",
|
|
29330
|
+
url: "https://data.cityofchicago.org/resource/awqx-tuwv.json",
|
|
29331
|
+
orderField: "violation_date",
|
|
29332
|
+
where: "violation_date >= '2000-01-01' AND violation_date < '2027-01-01'",
|
|
29333
|
+
coverage: "City building-code violation cases and their administrative-hearing outcomes, current to 2026.",
|
|
29334
|
+
recordLabel: "Docket",
|
|
29335
|
+
openedLabel: "Violation",
|
|
29336
|
+
closedLabel: "Hearing",
|
|
29337
|
+
fields: {
|
|
29338
|
+
address: "address",
|
|
29339
|
+
recordNumber: "docket_number",
|
|
29340
|
+
type: "issuing_department",
|
|
29341
|
+
description: "violation_description",
|
|
29342
|
+
status: "case_disposition",
|
|
29343
|
+
openedDate: "violation_date",
|
|
29344
|
+
closedDate: "hearing_date",
|
|
29345
|
+
zip: "ward"
|
|
29346
|
+
}
|
|
29347
|
+
},
|
|
29348
|
+
permits: {
|
|
29349
|
+
kind: "permits",
|
|
29350
|
+
tabLabel: "Building Permits",
|
|
29351
|
+
type: "socrata",
|
|
29352
|
+
url: "https://data.cityofchicago.org/resource/ydr8-5enu.json",
|
|
29353
|
+
orderField: "issue_date",
|
|
29354
|
+
coverage: "City building permits, refreshed daily; current to 2026.",
|
|
29355
|
+
recordLabel: "Permit",
|
|
29356
|
+
openedLabel: "Issued",
|
|
29357
|
+
fields: {
|
|
29358
|
+
address: "street_name",
|
|
29359
|
+
addressParts: ["street_number", "street_direction", "street_name"],
|
|
29360
|
+
recordNumber: "permit_",
|
|
29361
|
+
type: "permit_type",
|
|
29362
|
+
description: "work_description",
|
|
29363
|
+
value: "reported_cost",
|
|
29364
|
+
openedDate: "issue_date"
|
|
29365
|
+
}
|
|
29366
|
+
}
|
|
29367
|
+
},
|
|
29368
|
+
source: {
|
|
29369
|
+
name: "Chicago Data Portal",
|
|
29370
|
+
url: "https://data.cityofchicago.org/",
|
|
29371
|
+
license: "Public domain (City of Chicago)",
|
|
29372
|
+
portalLabel: "Chicago Data Portal",
|
|
29373
|
+
currentRecordsNote: "Both datasets are refreshed daily by the City of Chicago.",
|
|
29374
|
+
currentRecordsUrl: "https://data.cityofchicago.org/"
|
|
29375
|
+
}
|
|
29376
|
+
};
|
|
29377
|
+
|
|
29378
|
+
// data/city-property/nashville.json
|
|
29379
|
+
var nashville_default = {
|
|
29380
|
+
slug: "nashville",
|
|
29381
|
+
city: "Nashville",
|
|
29382
|
+
state: "Tennessee",
|
|
29383
|
+
stateAbbrev: "TN",
|
|
29384
|
+
countyName: "Davidson County",
|
|
29385
|
+
countySlug: "davidson-county",
|
|
29386
|
+
lastVerified: "2026-06-28",
|
|
29387
|
+
scopeNote: "Covers Metro Nashville and Davidson County. Other Middle Tennessee jurisdictions keep their own permit and code-enforcement records.",
|
|
29388
|
+
datasets: {
|
|
29389
|
+
violations: {
|
|
29390
|
+
kind: "violations",
|
|
29391
|
+
tabLabel: "Property Standards",
|
|
29392
|
+
type: "arcgis",
|
|
29393
|
+
url: "https://services2.arcgis.com/HdTo6HJqh92wn4D8/arcgis/rest/services/Property_Standards_Violations_2/FeatureServer/0",
|
|
29394
|
+
orderField: "Date_Received",
|
|
29395
|
+
coverage: "Metro Nashville property-standards (codes) cases, refreshed regularly; current to 2026.",
|
|
29396
|
+
recordLabel: "Case",
|
|
29397
|
+
openedLabel: "Reported",
|
|
29398
|
+
closedLabel: "Last activity",
|
|
29399
|
+
fields: {
|
|
29400
|
+
address: "Property_Address",
|
|
29401
|
+
recordNumber: "Request_Nbr",
|
|
29402
|
+
type: "Subtype_Description",
|
|
29403
|
+
description: "Reported_Problem",
|
|
29404
|
+
status: "Status",
|
|
29405
|
+
openedDate: "Date_Received",
|
|
29406
|
+
closedDate: "Last_Activity_Date",
|
|
29407
|
+
zip: "ZIP"
|
|
29408
|
+
}
|
|
29409
|
+
},
|
|
29410
|
+
permits: {
|
|
29411
|
+
kind: "permits",
|
|
29412
|
+
tabLabel: "Building Permits",
|
|
29413
|
+
type: "arcgis",
|
|
29414
|
+
url: "https://services2.arcgis.com/HdTo6HJqh92wn4D8/arcgis/rest/services/Building_Permits_Issued_2/FeatureServer/0",
|
|
29415
|
+
orderField: "Date_Issued",
|
|
29416
|
+
coverage: "Metro Nashville building permits, refreshed regularly; current to 2026.",
|
|
29417
|
+
recordLabel: "Permit",
|
|
29418
|
+
openedLabel: "Issued",
|
|
29419
|
+
fields: {
|
|
29420
|
+
address: "Address",
|
|
29421
|
+
recordNumber: "Permit__",
|
|
29422
|
+
type: "Permit_Type_Description",
|
|
29423
|
+
description: "Permit_Subtype_Description",
|
|
29424
|
+
value: "Const_Cost",
|
|
29425
|
+
contractor: "Contact",
|
|
29426
|
+
openedDate: "Date_Issued",
|
|
29427
|
+
zip: "ZIP"
|
|
29428
|
+
}
|
|
29429
|
+
}
|
|
29430
|
+
},
|
|
29431
|
+
source: {
|
|
29432
|
+
name: "Metro Nashville Open Data",
|
|
29433
|
+
url: "https://data.nashville.gov/",
|
|
29434
|
+
license: "Public record (Metro Nashville)",
|
|
29435
|
+
portalLabel: "Nashville Open Data portal",
|
|
29436
|
+
currentRecordsNote: "Permit and property-standards records are published by Metro Nashville Government.",
|
|
29437
|
+
currentRecordsUrl: "https://data.nashville.gov/"
|
|
29438
|
+
}
|
|
29439
|
+
};
|
|
29440
|
+
|
|
29441
|
+
// data/city-property/austin.json
|
|
29442
|
+
var austin_default = {
|
|
29443
|
+
slug: "austin",
|
|
29444
|
+
city: "Austin",
|
|
29445
|
+
state: "Texas",
|
|
29446
|
+
stateAbbrev: "TX",
|
|
29447
|
+
countyName: "Travis County",
|
|
29448
|
+
countySlug: "travis-county",
|
|
29449
|
+
lastVerified: "2026-06-28",
|
|
29450
|
+
scopeNote: "Covers properties inside the City of Austin. Other Travis County jurisdictions keep their own permit and code-enforcement records.",
|
|
29451
|
+
datasets: {
|
|
29452
|
+
violations: {
|
|
29453
|
+
kind: "violations",
|
|
29454
|
+
tabLabel: "Code Cases",
|
|
29455
|
+
type: "socrata",
|
|
29456
|
+
url: "https://data.austintexas.gov/resource/6wtj-zbtb.json",
|
|
29457
|
+
orderField: "opened_date",
|
|
29458
|
+
coverage: "City of Austin code-enforcement cases, complaint-driven, refreshed regularly; current to 2026.",
|
|
29459
|
+
recordLabel: "Case",
|
|
29460
|
+
openedLabel: "Opened",
|
|
29461
|
+
closedLabel: "Closed",
|
|
29462
|
+
fields: {
|
|
29463
|
+
address: "address",
|
|
29464
|
+
recordNumber: "case_id",
|
|
29465
|
+
description: "description",
|
|
29466
|
+
status: "status",
|
|
29467
|
+
openedDate: "opened_date",
|
|
29468
|
+
closedDate: "closed_date",
|
|
29469
|
+
zip: "zip_code"
|
|
29470
|
+
}
|
|
29471
|
+
},
|
|
29472
|
+
permits: {
|
|
29473
|
+
kind: "permits",
|
|
29474
|
+
tabLabel: "Building Permits",
|
|
29475
|
+
type: "socrata",
|
|
29476
|
+
url: "https://data.austintexas.gov/resource/3syk-w9eu.json",
|
|
29477
|
+
orderField: "issue_date",
|
|
29478
|
+
coverage: "City of Austin issued permits, building and trade, refreshed regularly; current to 2026.",
|
|
29479
|
+
recordLabel: "Permit",
|
|
29480
|
+
openedLabel: "Issued",
|
|
29481
|
+
fields: {
|
|
29482
|
+
address: "original_address1",
|
|
29483
|
+
recordNumber: "permit_number",
|
|
29484
|
+
type: "permit_type_desc",
|
|
29485
|
+
description: "description",
|
|
29486
|
+
status: "status_current",
|
|
29487
|
+
value: "total_job_valuation",
|
|
29488
|
+
contractor: "contractor_company_name",
|
|
29489
|
+
openedDate: "issue_date",
|
|
29490
|
+
zip: "original_zip"
|
|
29491
|
+
}
|
|
29492
|
+
}
|
|
29493
|
+
},
|
|
29494
|
+
source: {
|
|
29495
|
+
name: "City of Austin Open Data",
|
|
29496
|
+
url: "https://data.austintexas.gov/",
|
|
29497
|
+
license: "Public domain (City of Austin)",
|
|
29498
|
+
portalLabel: "City of Austin open data portal",
|
|
29499
|
+
currentRecordsNote: "Permit and code-case records are published by the City of Austin and refreshed regularly.",
|
|
29500
|
+
currentRecordsUrl: "https://data.austintexas.gov/"
|
|
29501
|
+
}
|
|
29502
|
+
};
|
|
29503
|
+
|
|
29504
|
+
// data/city-property/seattle.json
|
|
29505
|
+
var seattle_default = {
|
|
29506
|
+
slug: "seattle",
|
|
29507
|
+
city: "Seattle",
|
|
29508
|
+
state: "Washington",
|
|
29509
|
+
stateAbbrev: "WA",
|
|
29510
|
+
countyName: "King County",
|
|
29511
|
+
countySlug: "king-county",
|
|
29512
|
+
lastVerified: "2026-06-28",
|
|
29513
|
+
scopeNote: "Covers properties inside the City of Seattle. Other King County cities (Bellevue, Redmond, Renton, Kent, and the rest) keep their own permit and code-enforcement records.",
|
|
29514
|
+
datasets: {
|
|
29515
|
+
violations: {
|
|
29516
|
+
kind: "violations",
|
|
29517
|
+
tabLabel: "Code Cases",
|
|
29518
|
+
type: "socrata",
|
|
29519
|
+
url: "https://data.seattle.gov/resource/ez4a-iug7.json",
|
|
29520
|
+
orderField: "opendate",
|
|
29521
|
+
coverage: "Seattle code complaints, violations, and citations, refreshed regularly; current to 2026.",
|
|
29522
|
+
recordLabel: "Case",
|
|
29523
|
+
openedLabel: "Opened",
|
|
29524
|
+
closedLabel: "Last inspection",
|
|
29525
|
+
fields: {
|
|
29526
|
+
address: "originaladdress1",
|
|
29527
|
+
recordNumber: "recordnum",
|
|
29528
|
+
type: "recordtype",
|
|
29529
|
+
description: "description",
|
|
29530
|
+
status: "statuscurrent",
|
|
29531
|
+
openedDate: "opendate",
|
|
29532
|
+
closedDate: "lastinspdate",
|
|
29533
|
+
zip: "originalzip"
|
|
29534
|
+
}
|
|
29535
|
+
},
|
|
29536
|
+
permits: {
|
|
29537
|
+
kind: "permits",
|
|
29538
|
+
tabLabel: "Building Permits",
|
|
29539
|
+
type: "socrata",
|
|
29540
|
+
url: "https://data.seattle.gov/resource/76t5-zqzr.json",
|
|
29541
|
+
orderField: "issueddate",
|
|
29542
|
+
where: "issueddate IS NOT NULL",
|
|
29543
|
+
coverage: "Seattle building permits, refreshed regularly; current to 2026.",
|
|
29544
|
+
recordLabel: "Permit",
|
|
29545
|
+
openedLabel: "Issued",
|
|
29546
|
+
fields: {
|
|
29547
|
+
address: "originaladdress1",
|
|
29548
|
+
recordNumber: "permitnum",
|
|
29549
|
+
type: "permittypedesc",
|
|
29550
|
+
description: "description",
|
|
29551
|
+
status: "statuscurrent",
|
|
29552
|
+
value: "estprojectcost",
|
|
29553
|
+
contractor: "contractorcompanyname",
|
|
29554
|
+
openedDate: "issueddate",
|
|
29555
|
+
zip: "originalzip"
|
|
29556
|
+
}
|
|
29557
|
+
}
|
|
29558
|
+
},
|
|
29559
|
+
source: {
|
|
29560
|
+
name: "City of Seattle Open Data",
|
|
29561
|
+
url: "https://data.seattle.gov/",
|
|
29562
|
+
license: "Public domain (City of Seattle)",
|
|
29563
|
+
portalLabel: "City of Seattle open data portal",
|
|
29564
|
+
currentRecordsNote: "Permit and code-case records are published by the City of Seattle and refreshed regularly.",
|
|
29565
|
+
currentRecordsUrl: "https://data.seattle.gov/"
|
|
29566
|
+
}
|
|
29567
|
+
};
|
|
29568
|
+
|
|
29569
|
+
// data/city-property/nyc.json
|
|
29570
|
+
var nyc_default = {
|
|
29571
|
+
slug: "nyc",
|
|
29572
|
+
city: "New York City",
|
|
29573
|
+
state: "New York",
|
|
29574
|
+
stateAbbrev: "NY",
|
|
29575
|
+
lastVerified: "2026-07-24",
|
|
29576
|
+
scopeNote: "Covers all five New York City boroughs. Violations are HPD housing-maintenance cases; permits are DOB NOW building permits filed in the city's current permitting system.",
|
|
29577
|
+
datasets: {
|
|
29578
|
+
violations: {
|
|
29579
|
+
kind: "violations",
|
|
29580
|
+
tabLabel: "Housing Violations",
|
|
29581
|
+
type: "socrata",
|
|
29582
|
+
url: "https://data.cityofnewyork.us/resource/wvxf-dwi5.json",
|
|
29583
|
+
orderField: "inspectiondate",
|
|
29584
|
+
coverage: "NYC HPD housing-maintenance code violations, refreshed regularly; current to 2026.",
|
|
29585
|
+
recordLabel: "Violation",
|
|
29586
|
+
openedLabel: "Inspected",
|
|
29587
|
+
closedLabel: "Updated",
|
|
29588
|
+
fields: {
|
|
29589
|
+
address: "streetname",
|
|
29590
|
+
addressParts: ["housenumber", "streetname"],
|
|
29591
|
+
recordNumber: "violationid",
|
|
29592
|
+
type: "class",
|
|
29593
|
+
description: "novdescription",
|
|
29594
|
+
status: "currentstatus",
|
|
29595
|
+
openedDate: "inspectiondate",
|
|
29596
|
+
closedDate: "currentstatusdate",
|
|
29597
|
+
zip: "zip"
|
|
29598
|
+
}
|
|
29599
|
+
},
|
|
29600
|
+
permits: {
|
|
29601
|
+
kind: "permits",
|
|
29602
|
+
tabLabel: "Building Permits",
|
|
29603
|
+
type: "socrata",
|
|
29604
|
+
url: "https://data.cityofnewyork.us/resource/rbx6-tga4.json",
|
|
29605
|
+
orderField: "issued_date",
|
|
29606
|
+
where: "issued_date IS NOT NULL",
|
|
29607
|
+
coverage: "NYC DOB NOW building permits, refreshed regularly; current to 2026.",
|
|
29608
|
+
recordLabel: "Permit",
|
|
29609
|
+
openedLabel: "Issued",
|
|
29610
|
+
fields: {
|
|
29611
|
+
address: "street_name",
|
|
29612
|
+
addressParts: ["house_no", "street_name"],
|
|
29613
|
+
recordNumber: "job_filing_number",
|
|
29614
|
+
type: "work_type",
|
|
29615
|
+
description: "job_description",
|
|
29616
|
+
status: "permit_status",
|
|
29617
|
+
value: "estimated_job_costs",
|
|
29618
|
+
contractor: "applicant_business_name",
|
|
29619
|
+
openedDate: "issued_date",
|
|
29620
|
+
zip: "zip_code"
|
|
29621
|
+
}
|
|
29622
|
+
}
|
|
29623
|
+
},
|
|
29624
|
+
source: {
|
|
29625
|
+
name: "NYC Open Data",
|
|
29626
|
+
url: "https://opendata.cityofnewyork.us/",
|
|
29627
|
+
license: "Public domain (City of New York)",
|
|
29628
|
+
portalLabel: "NYC Open Data portal",
|
|
29629
|
+
currentRecordsNote: "HPD violation and DOB NOW permit records are published by the City of New York and refreshed regularly.",
|
|
29630
|
+
currentRecordsUrl: "https://opendata.cityofnewyork.us/"
|
|
29631
|
+
}
|
|
29632
|
+
};
|
|
29633
|
+
|
|
29634
|
+
// data/city-property/san-francisco.json
|
|
29635
|
+
var san_francisco_default = {
|
|
29636
|
+
slug: "san-francisco",
|
|
29637
|
+
city: "San Francisco",
|
|
29638
|
+
state: "California",
|
|
29639
|
+
stateAbbrev: "CA",
|
|
29640
|
+
lastVerified: "2026-07-24",
|
|
29641
|
+
scopeNote: "Covers the City and County of San Francisco. Violations are Department of Building Inspection notices of violation; permits are DBI building permits.",
|
|
29642
|
+
datasets: {
|
|
29643
|
+
violations: {
|
|
29644
|
+
kind: "violations",
|
|
29645
|
+
tabLabel: "Notices of Violation",
|
|
29646
|
+
type: "socrata",
|
|
29647
|
+
url: "https://data.sfgov.org/resource/nbtm-fbw5.json",
|
|
29648
|
+
orderField: "date_filed",
|
|
29649
|
+
coverage: "San Francisco DBI notices of violation, refreshed regularly; current to 2026.",
|
|
29650
|
+
recordLabel: "Complaint",
|
|
29651
|
+
openedLabel: "Filed",
|
|
29652
|
+
fields: {
|
|
29653
|
+
address: "street_name",
|
|
29654
|
+
addressParts: ["street_number", "street_name", "street_suffix"],
|
|
29655
|
+
recordNumber: "complaint_number",
|
|
29656
|
+
type: "nov_category_description",
|
|
29657
|
+
description: "nov_item_description",
|
|
29658
|
+
status: "status",
|
|
29659
|
+
openedDate: "date_filed",
|
|
29660
|
+
zip: "zipcode"
|
|
29661
|
+
}
|
|
29662
|
+
},
|
|
29663
|
+
permits: {
|
|
29664
|
+
kind: "permits",
|
|
29665
|
+
tabLabel: "Building Permits",
|
|
29666
|
+
type: "socrata",
|
|
29667
|
+
url: "https://data.sfgov.org/resource/i98e-djp9.json",
|
|
29668
|
+
orderField: "issued_date",
|
|
29669
|
+
where: "issued_date IS NOT NULL",
|
|
29670
|
+
coverage: "San Francisco building permits, refreshed regularly; current to 2026.",
|
|
29671
|
+
recordLabel: "Permit",
|
|
29672
|
+
openedLabel: "Issued",
|
|
29673
|
+
fields: {
|
|
29674
|
+
address: "street_name",
|
|
29675
|
+
addressParts: ["street_number", "street_name", "street_suffix"],
|
|
29676
|
+
recordNumber: "permit_number",
|
|
29677
|
+
type: "permit_type_definition",
|
|
29678
|
+
description: "description",
|
|
29679
|
+
status: "status",
|
|
29680
|
+
value: "estimated_cost",
|
|
29681
|
+
openedDate: "issued_date",
|
|
29682
|
+
zip: "zipcode"
|
|
29683
|
+
}
|
|
29684
|
+
}
|
|
29685
|
+
},
|
|
29686
|
+
source: {
|
|
29687
|
+
name: "DataSF",
|
|
29688
|
+
url: "https://datasf.org/opendata/",
|
|
29689
|
+
license: "Public domain (City and County of San Francisco)",
|
|
29690
|
+
portalLabel: "DataSF open data portal",
|
|
29691
|
+
currentRecordsNote: "DBI permit and violation records are published by the City and County of San Francisco and refreshed regularly.",
|
|
29692
|
+
currentRecordsUrl: "https://datasf.org/opendata/"
|
|
29693
|
+
}
|
|
29694
|
+
};
|
|
29695
|
+
|
|
29696
|
+
// data/city-property/detroit.json
|
|
29697
|
+
var detroit_default = {
|
|
29698
|
+
slug: "detroit",
|
|
29699
|
+
city: "Detroit",
|
|
29700
|
+
state: "Michigan",
|
|
29701
|
+
stateAbbrev: "MI",
|
|
29702
|
+
lastVerified: "2026-07-24",
|
|
29703
|
+
scopeNote: "Covers the City of Detroit. Violations are blight-violation tickets; permits are Buildings, Safety Engineering and Environmental Department (BSEED) building permits.",
|
|
29704
|
+
datasets: {
|
|
29705
|
+
violations: {
|
|
29706
|
+
kind: "violations",
|
|
29707
|
+
tabLabel: "Blight Violations",
|
|
29708
|
+
type: "arcgis",
|
|
29709
|
+
url: "https://services2.arcgis.com/qvkbeam7Wirps6zC/arcgis/rest/services/blight_tickets/FeatureServer/0",
|
|
29710
|
+
orderField: "ticket_issued_date",
|
|
29711
|
+
coverage: "City of Detroit blight-violation tickets, refreshed regularly; current to 2026.",
|
|
29712
|
+
recordLabel: "Ticket",
|
|
29713
|
+
openedLabel: "Ticketed",
|
|
29714
|
+
closedLabel: "Judgment",
|
|
29715
|
+
fields: {
|
|
29716
|
+
address: "address",
|
|
29717
|
+
recordNumber: "ticket_number",
|
|
29718
|
+
type: "ordinance_law",
|
|
29719
|
+
description: "ordinance_description",
|
|
29720
|
+
status: "disposition",
|
|
29721
|
+
openedDate: "ticket_issued_date",
|
|
29722
|
+
closedDate: "judgment_date",
|
|
29723
|
+
zip: "zip_code"
|
|
29724
|
+
}
|
|
29725
|
+
},
|
|
29726
|
+
permits: {
|
|
29727
|
+
kind: "permits",
|
|
29728
|
+
tabLabel: "Building Permits",
|
|
29729
|
+
type: "arcgis",
|
|
29730
|
+
url: "https://services2.arcgis.com/qvkbeam7Wirps6zC/arcgis/rest/services/bseed_building_permits/FeatureServer/0",
|
|
29731
|
+
orderField: "issued_date",
|
|
29732
|
+
coverage: "City of Detroit BSEED building permits, refreshed regularly; current to 2026.",
|
|
29733
|
+
recordLabel: "Permit",
|
|
29734
|
+
openedLabel: "Issued",
|
|
29735
|
+
fields: {
|
|
29736
|
+
address: "address",
|
|
29737
|
+
recordNumber: "record_id",
|
|
29738
|
+
type: "permit_type",
|
|
29739
|
+
description: "work_description",
|
|
29740
|
+
value: "amt_estimated_contractor_cost",
|
|
29741
|
+
openedDate: "issued_date",
|
|
29742
|
+
zip: "zip_code"
|
|
29743
|
+
}
|
|
29744
|
+
}
|
|
29745
|
+
},
|
|
29746
|
+
source: {
|
|
29747
|
+
name: "City of Detroit Open Data Portal",
|
|
29748
|
+
url: "https://data.detroitmi.gov/",
|
|
29749
|
+
license: "Public domain (City of Detroit)",
|
|
29750
|
+
portalLabel: "City of Detroit Open Data Portal",
|
|
29751
|
+
currentRecordsNote: "Blight-ticket and BSEED permit records are published by the City of Detroit and refreshed regularly.",
|
|
29752
|
+
currentRecordsUrl: "https://data.detroitmi.gov/"
|
|
29753
|
+
}
|
|
29754
|
+
};
|
|
29755
|
+
|
|
29756
|
+
// data/city-property/las-vegas.json
|
|
29757
|
+
var las_vegas_default = {
|
|
29758
|
+
slug: "las-vegas",
|
|
29759
|
+
city: "Las Vegas",
|
|
29760
|
+
state: "Nevada",
|
|
29761
|
+
stateAbbrev: "NV",
|
|
29762
|
+
countyName: "Clark County",
|
|
29763
|
+
countySlug: "clark-county",
|
|
29764
|
+
lastVerified: "2026-07-24",
|
|
29765
|
+
scopeNote: "Covers the City of Las Vegas. Other Clark County jurisdictions (Henderson, North Las Vegas, and unincorporated areas) keep their own permit and code-enforcement records.",
|
|
29766
|
+
datasets: {
|
|
29767
|
+
violations: {
|
|
29768
|
+
kind: "violations",
|
|
29769
|
+
tabLabel: "Code Violations",
|
|
29770
|
+
type: "arcgis",
|
|
29771
|
+
url: "https://services1.arcgis.com/F1v0ufATbBQScMtY/arcgis/rest/services/Code_Enforcement_Open_Data/FeatureServer/0",
|
|
29772
|
+
orderField: "Event_Date",
|
|
29773
|
+
where: "DESCRIPT <> 'None'",
|
|
29774
|
+
coverage: "City of Las Vegas code-enforcement cases reported through early 2024.",
|
|
29775
|
+
recordLabel: "Case",
|
|
29776
|
+
openedLabel: "Reported",
|
|
29777
|
+
fields: {
|
|
29778
|
+
address: "ADDRESS",
|
|
29779
|
+
description: "DESCRIPT",
|
|
29780
|
+
status: "STAT",
|
|
29781
|
+
openedDate: "Event_Date"
|
|
29782
|
+
}
|
|
29783
|
+
},
|
|
29784
|
+
permits: {
|
|
29785
|
+
kind: "permits",
|
|
29786
|
+
tabLabel: "Building Permits",
|
|
29787
|
+
type: "arcgis",
|
|
29788
|
+
url: "https://services1.arcgis.com/F1v0ufATbBQScMtY/arcgis/rest/services/OpenData_Building_Permits_/FeatureServer/0",
|
|
29789
|
+
orderField: "ISSDTTM",
|
|
29790
|
+
coverage: "City of Las Vegas building permits, refreshed regularly; current to 2026.",
|
|
29791
|
+
recordLabel: "Permit",
|
|
29792
|
+
openedLabel: "Issued",
|
|
29793
|
+
fields: {
|
|
29794
|
+
address: "ADDR1",
|
|
29795
|
+
recordNumber: "APNO",
|
|
29796
|
+
type: "APTYPE",
|
|
29797
|
+
status: "BLDGAPPLSTATUS",
|
|
29798
|
+
value: "DECLVLTN",
|
|
29799
|
+
contractor: "APPLICANT",
|
|
29800
|
+
openedDate: "ISSDTTM",
|
|
29801
|
+
zip: "ZIP"
|
|
29802
|
+
}
|
|
29803
|
+
}
|
|
29804
|
+
},
|
|
29805
|
+
source: {
|
|
29806
|
+
name: "City of Las Vegas Open Data",
|
|
29807
|
+
url: "https://opendata-lasvegas.hub.arcgis.com/",
|
|
29808
|
+
license: "Public record (City of Las Vegas)",
|
|
29809
|
+
portalLabel: "City of Las Vegas Open Data hub",
|
|
29810
|
+
currentRecordsNote: "For current code cases and permits, use the City of Las Vegas online services.",
|
|
29811
|
+
currentRecordsUrl: "https://www.lasvegasnevada.gov/"
|
|
29812
|
+
}
|
|
29813
|
+
};
|
|
29814
|
+
|
|
29815
|
+
// data/city-property/kansas-city.json
|
|
29816
|
+
var kansas_city_default = {
|
|
29817
|
+
slug: "kansas-city",
|
|
29818
|
+
city: "Kansas City",
|
|
29819
|
+
state: "Missouri",
|
|
29820
|
+
stateAbbrev: "MO",
|
|
29821
|
+
countyName: "Jackson County",
|
|
29822
|
+
countySlug: "jackson-county",
|
|
29823
|
+
lastVerified: "2026-07-24",
|
|
29824
|
+
scopeNote: "Covers the City of Kansas City, Missouri, which spans Jackson, Clay, and Platte counties. Other metro jurisdictions keep their own permit and code-enforcement records.",
|
|
29825
|
+
datasets: {
|
|
29826
|
+
violations: {
|
|
29827
|
+
kind: "violations",
|
|
29828
|
+
tabLabel: "Code Violations",
|
|
29829
|
+
type: "socrata",
|
|
29830
|
+
url: "https://data.kcmo.org/resource/vq3e-m9ge.json",
|
|
29831
|
+
orderField: "date_found",
|
|
29832
|
+
where: "date_found IS NOT NULL",
|
|
29833
|
+
coverage: "Kansas City neighborhood code-enforcement cases, refreshed regularly; current to 2026.",
|
|
29834
|
+
recordLabel: "Case",
|
|
29835
|
+
openedLabel: "Found",
|
|
29836
|
+
closedLabel: "Resolved",
|
|
29837
|
+
fields: {
|
|
29838
|
+
address: "street_address",
|
|
29839
|
+
recordNumber: "casenumber",
|
|
29840
|
+
type: "ordinance",
|
|
29841
|
+
description: "ord_text",
|
|
29842
|
+
status: "case_status",
|
|
29843
|
+
openedDate: "date_found",
|
|
29844
|
+
closedDate: "date_resolved",
|
|
29845
|
+
zip: "postalcode"
|
|
29846
|
+
}
|
|
29847
|
+
},
|
|
29848
|
+
permits: {
|
|
29849
|
+
kind: "permits",
|
|
29850
|
+
tabLabel: "Building Permits",
|
|
29851
|
+
type: "socrata",
|
|
29852
|
+
url: "https://data.kcmo.org/resource/ntw8-aacc.json",
|
|
29853
|
+
orderField: "issueddate",
|
|
29854
|
+
coverage: "Kansas City building and trade permits issued through mid-2025.",
|
|
29855
|
+
recordLabel: "Permit",
|
|
29856
|
+
openedLabel: "Issued",
|
|
29857
|
+
fields: {
|
|
29858
|
+
address: "originaladdress1",
|
|
29859
|
+
recordNumber: "permitnum",
|
|
29860
|
+
type: "permittypedesc",
|
|
29861
|
+
description: "description",
|
|
29862
|
+
status: "statuscurrent",
|
|
29863
|
+
value: "estprojectcost",
|
|
29864
|
+
contractor: "contractorcompanyname",
|
|
29865
|
+
openedDate: "issueddate",
|
|
29866
|
+
zip: "originalzip",
|
|
29867
|
+
link: "link"
|
|
29868
|
+
}
|
|
29869
|
+
}
|
|
29870
|
+
},
|
|
29871
|
+
source: {
|
|
29872
|
+
name: "OpenDataKC",
|
|
29873
|
+
url: "https://data.kcmo.org/",
|
|
29874
|
+
license: "Public domain (City of Kansas City, Missouri)",
|
|
29875
|
+
portalLabel: "OpenDataKC portal",
|
|
29876
|
+
currentRecordsNote: "For current permits, use the City of Kansas City Compass self-service portal.",
|
|
29877
|
+
currentRecordsUrl: "https://compasskc.kcmo.org/"
|
|
29878
|
+
}
|
|
29879
|
+
};
|
|
29880
|
+
|
|
29881
|
+
// data/city-property/columbus.json
|
|
29882
|
+
var columbus_default = {
|
|
29883
|
+
slug: "columbus",
|
|
29884
|
+
city: "Columbus",
|
|
29885
|
+
state: "Ohio",
|
|
29886
|
+
stateAbbrev: "OH",
|
|
29887
|
+
countyName: "Franklin County",
|
|
29888
|
+
countySlug: "franklin-county",
|
|
29889
|
+
lastVerified: "2026-07-24",
|
|
29890
|
+
scopeNote: "Covers the City of Columbus. Other Franklin County municipalities keep their own permit and code-enforcement records.",
|
|
29891
|
+
datasets: {
|
|
29892
|
+
violations: {
|
|
29893
|
+
kind: "violations",
|
|
29894
|
+
tabLabel: "Code Violations",
|
|
29895
|
+
type: "arcgis",
|
|
29896
|
+
url: "https://maps2.columbus.gov/arcgis/rest/services/Schemas/BuildingZoning/MapServer/23",
|
|
29897
|
+
orderField: "B1_FILE_DD",
|
|
29898
|
+
coverage: "City of Columbus code-enforcement cases, refreshed nightly; current to 2026.",
|
|
29899
|
+
recordLabel: "Case",
|
|
29900
|
+
openedLabel: "Filed",
|
|
29901
|
+
closedLabel: "Last inspection",
|
|
29902
|
+
fields: {
|
|
29903
|
+
address: "SITE_ADDRESS",
|
|
29904
|
+
recordNumber: "B1_ALT_ID",
|
|
29905
|
+
type: "B1_PER_CATEGORY",
|
|
29906
|
+
description: "B1_PER_TYPE",
|
|
29907
|
+
status: "B1_APPL_STATUS",
|
|
29908
|
+
openedDate: "B1_FILE_DD",
|
|
29909
|
+
closedDate: "INSP_LAST_DATE",
|
|
29910
|
+
link: "ACA_URL"
|
|
29911
|
+
}
|
|
29912
|
+
},
|
|
29913
|
+
permits: {
|
|
29914
|
+
kind: "permits",
|
|
29915
|
+
tabLabel: "Building Permits",
|
|
29916
|
+
type: "arcgis",
|
|
29917
|
+
url: "https://services1.arcgis.com/9yy6msODkIBzkUXU/arcgis/rest/services/Building_Permits/FeatureServer/0",
|
|
29918
|
+
orderField: "ISSUED_DT",
|
|
29919
|
+
coverage: "City of Columbus building permits, refreshed regularly; current to 2026.",
|
|
29920
|
+
recordLabel: "Permit",
|
|
29921
|
+
openedLabel: "Issued",
|
|
29922
|
+
closedLabel: "Last status",
|
|
29923
|
+
fields: {
|
|
29924
|
+
address: "SITE_ADDRESS",
|
|
29925
|
+
recordNumber: "B1_ALT_ID",
|
|
29926
|
+
type: "B1_PER_TYPE",
|
|
29927
|
+
description: "GENERAL_TYPE",
|
|
29928
|
+
status: "PERMIT_STATUS",
|
|
29929
|
+
value: "G3_VALUE_TTL",
|
|
29930
|
+
contractor: "APPLICANT_BUS_NAME",
|
|
29931
|
+
openedDate: "ISSUED_DT",
|
|
29932
|
+
closedDate: "LAST_STATUS_DT",
|
|
29933
|
+
zip: "B1_SITUS_ZIP",
|
|
29934
|
+
link: "ACA_URL"
|
|
29935
|
+
}
|
|
29936
|
+
}
|
|
29937
|
+
},
|
|
29938
|
+
source: {
|
|
29939
|
+
name: "City of Columbus Open Data",
|
|
29940
|
+
url: "https://opendata.columbus.gov/",
|
|
29941
|
+
license: "Public record (City of Columbus)",
|
|
29942
|
+
portalLabel: "City of Columbus open data",
|
|
29943
|
+
currentRecordsNote: "For current permits and code cases, use the City of Columbus Citizen Access portal.",
|
|
29944
|
+
currentRecordsUrl: "https://ca.columbus.gov/"
|
|
29945
|
+
}
|
|
29946
|
+
};
|
|
29947
|
+
|
|
29948
|
+
// data/city-property/boston.json
|
|
29949
|
+
var boston_default = {
|
|
29950
|
+
slug: "boston",
|
|
29951
|
+
city: "Boston",
|
|
29952
|
+
state: "Massachusetts",
|
|
29953
|
+
stateAbbrev: "MA",
|
|
29954
|
+
lastVerified: "2026-07-24",
|
|
29955
|
+
scopeNote: "Covers properties inside the City of Boston. Surrounding municipalities keep their own permit and code-enforcement records.",
|
|
29956
|
+
datasets: {
|
|
29957
|
+
violations: {
|
|
29958
|
+
kind: "violations",
|
|
29959
|
+
tabLabel: "Code Violations",
|
|
29960
|
+
type: "ckan",
|
|
29961
|
+
url: "https://data.boston.gov",
|
|
29962
|
+
resourceId: "800a2663-1d6a-46e7-9356-bedb70f5332c",
|
|
29963
|
+
orderField: "status_dttm",
|
|
29964
|
+
where: "status_dttm IS NOT NULL",
|
|
29965
|
+
coverage: "Boston building and property violation cases, 2009 to present.",
|
|
29966
|
+
recordLabel: "Case",
|
|
29967
|
+
openedLabel: "Updated",
|
|
29968
|
+
fields: {
|
|
29969
|
+
address: "violation_street",
|
|
29970
|
+
addressParts: ["violation_stno", "violation_street", "violation_suffix"],
|
|
29971
|
+
recordNumber: "case_no",
|
|
29972
|
+
description: "description",
|
|
29973
|
+
status: "status",
|
|
29974
|
+
openedDate: "status_dttm",
|
|
29975
|
+
zip: "violation_zip"
|
|
29976
|
+
}
|
|
29977
|
+
},
|
|
29978
|
+
permits: {
|
|
29979
|
+
kind: "permits",
|
|
29980
|
+
tabLabel: "Building Permits",
|
|
29981
|
+
type: "ckan",
|
|
29982
|
+
url: "https://data.boston.gov",
|
|
29983
|
+
resourceId: "6ddcd912-32a0-43df-9908-63574f8c7e77",
|
|
29984
|
+
orderField: "issued_date",
|
|
29985
|
+
coverage: "Boston approved building permits, 2006 to present; refreshed daily.",
|
|
29986
|
+
recordLabel: "Permit",
|
|
29987
|
+
openedLabel: "Issued",
|
|
29988
|
+
closedLabel: "Expires",
|
|
29989
|
+
fields: {
|
|
29990
|
+
address: "address",
|
|
29991
|
+
recordNumber: "permitnumber",
|
|
29992
|
+
type: "permittypedescr",
|
|
29993
|
+
description: "description",
|
|
29994
|
+
status: "status",
|
|
29995
|
+
value: "declared_valuation",
|
|
29996
|
+
openedDate: "issued_date",
|
|
29997
|
+
closedDate: "expiration_date",
|
|
29998
|
+
zip: "zip"
|
|
29999
|
+
}
|
|
30000
|
+
}
|
|
30001
|
+
},
|
|
30002
|
+
source: {
|
|
30003
|
+
name: "Analyze Boston",
|
|
30004
|
+
url: "https://data.boston.gov/",
|
|
30005
|
+
license: "Public domain (City of Boston)",
|
|
30006
|
+
portalLabel: "Analyze Boston",
|
|
30007
|
+
currentRecordsNote: "Both datasets are published by the City of Boston on Analyze Boston.",
|
|
30008
|
+
currentRecordsUrl: "https://data.boston.gov/"
|
|
30009
|
+
}
|
|
30010
|
+
};
|
|
30011
|
+
|
|
30012
|
+
// data/city-property/san-antonio.json
|
|
30013
|
+
var san_antonio_default = {
|
|
30014
|
+
slug: "san-antonio",
|
|
30015
|
+
city: "San Antonio",
|
|
30016
|
+
state: "Texas",
|
|
30017
|
+
stateAbbrev: "TX",
|
|
30018
|
+
lastVerified: "2026-08-24",
|
|
30019
|
+
scopeNote: "Covers building permits and 311 code-enforcement service requests within the City of San Antonio. Bexar County and surrounding municipalities keep their own records.",
|
|
30020
|
+
datasets: {
|
|
30021
|
+
violations: {
|
|
30022
|
+
kind: "violations",
|
|
30023
|
+
tabLabel: "Code Cases (311)",
|
|
30024
|
+
type: "arcgis",
|
|
30025
|
+
url: "https://services.arcgis.com/g1fRTDLeMgspWrYp/arcgis/rest/services/311_All_Service_Calls/FeatureServer/0",
|
|
30026
|
+
orderField: "OpenedDateTime",
|
|
30027
|
+
where: "ReasonName='Code Enforcement'",
|
|
30028
|
+
coverage: "San Antonio 311 service requests routed to Code Enforcement Services (overgrown yard, junk vehicle, dangerous premise, zoning, graffiti and similar), live feed current to 2026. These are complaint-driven service requests, not formal citations; the city publishes no standalone violations dataset.",
|
|
30029
|
+
recordLabel: "Service request",
|
|
30030
|
+
openedLabel: "Opened",
|
|
30031
|
+
closedLabel: "Closed",
|
|
30032
|
+
fields: {
|
|
30033
|
+
address: "ObjectDescription",
|
|
30034
|
+
type: "TypeName",
|
|
30035
|
+
status: "CaseStatus",
|
|
30036
|
+
openedDate: "OpenedDateTime",
|
|
30037
|
+
closedDate: "ClosedDateTime"
|
|
30038
|
+
}
|
|
30039
|
+
},
|
|
30040
|
+
permits: {
|
|
30041
|
+
kind: "permits",
|
|
30042
|
+
tabLabel: "Building Permits",
|
|
30043
|
+
type: "ckan",
|
|
30044
|
+
url: "https://data.sanantonio.gov",
|
|
30045
|
+
resourceId: "c21106f9-3ef5-4f3a-8604-f992b4db7512",
|
|
30046
|
+
orderField: "DATE ISSUED",
|
|
30047
|
+
coverage: "San Antonio permits issued January 2025 to present.",
|
|
30048
|
+
recordLabel: "Permit",
|
|
30049
|
+
openedLabel: "Issued",
|
|
30050
|
+
fields: {
|
|
30051
|
+
address: "ADDRESS",
|
|
30052
|
+
recordNumber: "PERMIT #",
|
|
30053
|
+
type: "PERMIT TYPE",
|
|
30054
|
+
description: "WORK TYPE",
|
|
30055
|
+
value: "DECLARED VALUATION",
|
|
30056
|
+
openedDate: "DATE ISSUED"
|
|
30057
|
+
}
|
|
30058
|
+
}
|
|
30059
|
+
},
|
|
30060
|
+
source: {
|
|
30061
|
+
name: "City of San Antonio Open Data",
|
|
30062
|
+
url: "https://data.sanantonio.gov/",
|
|
30063
|
+
license: "Public domain (City of San Antonio)",
|
|
30064
|
+
portalLabel: "San Antonio Open Data",
|
|
30065
|
+
currentRecordsNote: "Permits are published by the Development Services Department; 311 code cases come from the city's 311 All Service Calls layer on the COSAGIS open-data hub.",
|
|
30066
|
+
currentRecordsUrl: "https://data.sanantonio.gov/dataset/building-permits"
|
|
30067
|
+
}
|
|
30068
|
+
};
|
|
30069
|
+
|
|
30070
|
+
// data/city-property/milwaukee.json
|
|
30071
|
+
var milwaukee_default = {
|
|
30072
|
+
slug: "milwaukee",
|
|
30073
|
+
city: "Milwaukee",
|
|
30074
|
+
state: "Wisconsin",
|
|
30075
|
+
stateAbbrev: "WI",
|
|
30076
|
+
lastVerified: "2026-07-24",
|
|
30077
|
+
scopeNote: "Covers building permits issued within the City of Milwaukee. Surrounding municipalities keep their own records.",
|
|
30078
|
+
datasets: {
|
|
30079
|
+
permits: {
|
|
30080
|
+
kind: "permits",
|
|
30081
|
+
tabLabel: "Building Permits",
|
|
30082
|
+
type: "ckan",
|
|
30083
|
+
url: "https://data.milwaukee.gov",
|
|
30084
|
+
resourceId: "828e9630-d7cb-42e4-960e-964eae916397",
|
|
30085
|
+
orderField: "Date Issued",
|
|
30086
|
+
coverage: "Milwaukee building permits, 2015 to present.",
|
|
30087
|
+
recordLabel: "Permit",
|
|
30088
|
+
openedLabel: "Issued",
|
|
30089
|
+
fields: {
|
|
30090
|
+
address: "Address",
|
|
30091
|
+
recordNumber: "Record ID",
|
|
30092
|
+
type: "Permit Type",
|
|
30093
|
+
status: "Status",
|
|
30094
|
+
value: "Construction Total Cost",
|
|
30095
|
+
openedDate: "Date Issued"
|
|
30096
|
+
}
|
|
30097
|
+
}
|
|
30098
|
+
},
|
|
30099
|
+
source: {
|
|
30100
|
+
name: "Milwaukee Open Data",
|
|
30101
|
+
url: "https://data.milwaukee.gov/",
|
|
30102
|
+
license: "Public domain (City of Milwaukee)",
|
|
30103
|
+
portalLabel: "Milwaukee Open Data",
|
|
30104
|
+
currentRecordsNote: "Permits are published by the City of Milwaukee Department of Neighborhood Services.",
|
|
30105
|
+
currentRecordsUrl: "https://data.milwaukee.gov/dataset/buildingpermits"
|
|
30106
|
+
}
|
|
30107
|
+
};
|
|
30108
|
+
|
|
30109
|
+
// data/city-property/charlotte.json
|
|
30110
|
+
var charlotte_default = {
|
|
30111
|
+
slug: "charlotte",
|
|
30112
|
+
city: "Charlotte",
|
|
30113
|
+
state: "North Carolina",
|
|
30114
|
+
stateAbbrev: "NC",
|
|
30115
|
+
countyName: "Mecklenburg County",
|
|
30116
|
+
countySlug: "mecklenburg-county",
|
|
30117
|
+
lastVerified: "2026-07-26",
|
|
30118
|
+
scopeNote: "Covers code-enforcement cases inside the City of Charlotte. Other Mecklenburg County towns keep their own records.",
|
|
30119
|
+
datasets: {
|
|
30120
|
+
violations: {
|
|
30121
|
+
kind: "violations",
|
|
30122
|
+
tabLabel: "Code Violations",
|
|
30123
|
+
type: "arcgis",
|
|
30124
|
+
url: "https://gis.charlottenc.gov/arcgis/rest/services/HNS/CodeEnforcementCasesAll/MapServer/0",
|
|
30125
|
+
orderField: "DateCreated",
|
|
30126
|
+
coverage: "Charlotte code-enforcement cases from the city's Housing and Neighborhood Services layer, over 430,000 records, refreshed daily.",
|
|
30127
|
+
recordLabel: "Case",
|
|
30128
|
+
openedLabel: "Opened",
|
|
30129
|
+
closedLabel: "Closed",
|
|
30130
|
+
fields: {
|
|
30131
|
+
address: "FullAddress",
|
|
30132
|
+
recordNumber: "CaseNumber",
|
|
30133
|
+
type: "CaseType",
|
|
30134
|
+
description: "DetailedDescription",
|
|
30135
|
+
status: "CaseStatus",
|
|
30136
|
+
openedDate: "DateCreated",
|
|
30137
|
+
closedDate: "DateClosed"
|
|
30138
|
+
}
|
|
30139
|
+
}
|
|
30140
|
+
},
|
|
30141
|
+
source: {
|
|
30142
|
+
name: "City of Charlotte GIS",
|
|
30143
|
+
url: "https://gis.charlottenc.gov/",
|
|
30144
|
+
license: "Public record (City of Charlotte)",
|
|
30145
|
+
portalLabel: "Charlotte Open Data",
|
|
30146
|
+
currentRecordsNote: "Cases are published by Charlotte Housing and Neighborhood Services (Code Enforcement).",
|
|
30147
|
+
currentRecordsUrl: "https://data.charlottenc.gov/"
|
|
30148
|
+
}
|
|
30149
|
+
};
|
|
30150
|
+
|
|
30151
|
+
// data/city-property/denver.json
|
|
30152
|
+
var denver_default = {
|
|
30153
|
+
slug: "denver",
|
|
30154
|
+
city: "Denver",
|
|
30155
|
+
state: "Colorado",
|
|
30156
|
+
stateAbbrev: "CO",
|
|
30157
|
+
countyName: "Denver County",
|
|
30158
|
+
countySlug: "denver-county",
|
|
30159
|
+
lastVerified: "2026-07-26",
|
|
30160
|
+
scopeNote: "Covers the City and County of Denver. Surrounding Colorado municipalities keep their own permit records.",
|
|
30161
|
+
datasets: {
|
|
30162
|
+
permits: {
|
|
30163
|
+
kind: "permits",
|
|
30164
|
+
tabLabel: "Building Permits",
|
|
30165
|
+
type: "arcgis",
|
|
30166
|
+
url: "https://services1.arcgis.com/zdB7qR0BtYrg0Xpl/arcgis/rest/services/ODC_DEV_RESIDENTIALCONSTPERMIT_P/FeatureServer/316",
|
|
30167
|
+
orderField: "DATE_ISSUED",
|
|
30168
|
+
coverage: "Denver RESIDENTIAL construction permits, about 79,000 records. Commercial construction permits are published as a separate city dataset and are not searchable here.",
|
|
30169
|
+
recordLabel: "Permit",
|
|
30170
|
+
openedLabel: "Issued",
|
|
30171
|
+
fields: {
|
|
30172
|
+
address: "ADDRESS",
|
|
30173
|
+
recordNumber: "PERMIT_NUM",
|
|
30174
|
+
type: "CLASS",
|
|
30175
|
+
description: "CONTRACTOR_NAME",
|
|
30176
|
+
value: "VALUATION",
|
|
30177
|
+
openedDate: "DATE_ISSUED"
|
|
30178
|
+
}
|
|
30179
|
+
}
|
|
30180
|
+
},
|
|
30181
|
+
source: {
|
|
30182
|
+
name: "Denver Open Data Catalog",
|
|
30183
|
+
url: "https://denvergov.org/opendata",
|
|
30184
|
+
license: "Public domain (City and County of Denver)",
|
|
30185
|
+
portalLabel: "Denver Open Data",
|
|
30186
|
+
currentRecordsNote: "Permits are published by Denver Community Planning and Development.",
|
|
30187
|
+
currentRecordsUrl: "https://denvergov.org/opendata"
|
|
30188
|
+
}
|
|
30189
|
+
};
|
|
30190
|
+
|
|
30191
|
+
// data/city-property/washington-dc.json
|
|
30192
|
+
var washington_dc_default = {
|
|
30193
|
+
slug: "washington-dc",
|
|
30194
|
+
city: "Washington, DC",
|
|
30195
|
+
state: "District of Columbia",
|
|
30196
|
+
stateAbbrev: "DC",
|
|
30197
|
+
countySlug: "district-of-columbia",
|
|
30198
|
+
lastVerified: "2026-07-26",
|
|
30199
|
+
scopeNote: "Covers the District of Columbia. DC has no county layer; the District issues all building permits directly.",
|
|
30200
|
+
datasets: {
|
|
30201
|
+
permits: {
|
|
30202
|
+
kind: "permits",
|
|
30203
|
+
tabLabel: "Building Permits",
|
|
30204
|
+
type: "arcgis",
|
|
30205
|
+
url: "https://maps2.dcgis.dc.gov/dcgis/rest/services/FEEDS/DCRA/FeatureServer/18",
|
|
30206
|
+
orderField: "ISSUE_DATE",
|
|
30207
|
+
coverage: "District of Columbia building permits issued in 2026, about 27,000 records. DC publishes one layer per calendar year back to 2009; earlier years are not searchable here.",
|
|
30208
|
+
recordLabel: "Permit",
|
|
30209
|
+
openedLabel: "Issued",
|
|
30210
|
+
fields: {
|
|
30211
|
+
address: "FULL_ADDRESS",
|
|
30212
|
+
recordNumber: "PERMIT_ID",
|
|
30213
|
+
type: "PERMIT_TYPE_NAME",
|
|
30214
|
+
description: "DESC_OF_WORK",
|
|
30215
|
+
status: "APPLICATION_STATUS_NAME",
|
|
30216
|
+
openedDate: "ISSUE_DATE"
|
|
30217
|
+
}
|
|
30218
|
+
}
|
|
30219
|
+
},
|
|
30220
|
+
source: {
|
|
30221
|
+
name: "DC GIS (DCRA feeds)",
|
|
30222
|
+
url: "https://opendata.dc.gov/",
|
|
30223
|
+
license: "Public domain (District of Columbia)",
|
|
30224
|
+
portalLabel: "Open Data DC",
|
|
30225
|
+
currentRecordsNote: "Permits are published by the DC Department of Buildings via the DCRA feed service.",
|
|
30226
|
+
currentRecordsUrl: "https://opendata.dc.gov/search?q=building%20permits"
|
|
30227
|
+
}
|
|
30228
|
+
};
|
|
30229
|
+
|
|
30230
|
+
// data/city-property/philadelphia.json
|
|
30231
|
+
var philadelphia_default = {
|
|
30232
|
+
slug: "philadelphia",
|
|
30233
|
+
city: "Philadelphia",
|
|
30234
|
+
state: "Pennsylvania",
|
|
30235
|
+
stateAbbrev: "PA",
|
|
30236
|
+
countyName: "Philadelphia County",
|
|
30237
|
+
countySlug: "philadelphia-county",
|
|
30238
|
+
lastVerified: "2026-07-26",
|
|
30239
|
+
scopeNote: "Philadelphia is a consolidated city-county, so these Licenses & Inspections records cover the whole county.",
|
|
30240
|
+
datasets: {
|
|
30241
|
+
violations: {
|
|
30242
|
+
kind: "violations",
|
|
30243
|
+
tabLabel: "Code Violations",
|
|
30244
|
+
type: "carto",
|
|
30245
|
+
url: "https://phl.carto.com",
|
|
30246
|
+
resourceId: "violations",
|
|
30247
|
+
orderField: "violationdate",
|
|
30248
|
+
coverage: "Philadelphia Licenses & Inspections code violations, about 2 million records, refreshed daily.",
|
|
30249
|
+
recordLabel: "Violation",
|
|
30250
|
+
openedLabel: "Cited",
|
|
30251
|
+
closedLabel: "Resolved",
|
|
30252
|
+
fields: {
|
|
30253
|
+
address: "address",
|
|
30254
|
+
recordNumber: "casenumber",
|
|
30255
|
+
type: "violationcodetitle",
|
|
30256
|
+
description: "casetype",
|
|
30257
|
+
status: "violationstatus",
|
|
30258
|
+
openedDate: "violationdate",
|
|
30259
|
+
closedDate: "violationresolutiondate"
|
|
30260
|
+
}
|
|
30261
|
+
},
|
|
30262
|
+
permits: {
|
|
30263
|
+
kind: "permits",
|
|
30264
|
+
tabLabel: "Building Permits",
|
|
30265
|
+
type: "carto",
|
|
30266
|
+
url: "https://phl.carto.com",
|
|
30267
|
+
resourceId: "permits",
|
|
30268
|
+
orderField: "permitissuedate",
|
|
30269
|
+
coverage: "Philadelphia Licenses & Inspections building permits, about 928,000 records, refreshed daily.",
|
|
30270
|
+
recordLabel: "Permit",
|
|
30271
|
+
openedLabel: "Issued",
|
|
30272
|
+
closedLabel: "Completed",
|
|
30273
|
+
fields: {
|
|
30274
|
+
address: "address",
|
|
30275
|
+
recordNumber: "permitnumber",
|
|
30276
|
+
type: "permittype",
|
|
30277
|
+
description: "permitdescription",
|
|
30278
|
+
status: "status",
|
|
30279
|
+
openedDate: "permitissuedate",
|
|
30280
|
+
closedDate: "permitcompleteddate"
|
|
30281
|
+
}
|
|
30282
|
+
}
|
|
30283
|
+
},
|
|
30284
|
+
source: {
|
|
30285
|
+
name: "OpenDataPhilly / City of Philadelphia L&I",
|
|
30286
|
+
url: "https://opendataphilly.org/",
|
|
30287
|
+
license: "City of Philadelphia License",
|
|
30288
|
+
portalLabel: "OpenDataPhilly",
|
|
30289
|
+
currentRecordsNote: "Violations and permits are published by Philadelphia Licenses & Inspections and served from the city's CARTO SQL API.",
|
|
30290
|
+
currentRecordsUrl: "https://opendataphilly.org/datasets/licenses-and-inspections-violations/"
|
|
30291
|
+
}
|
|
30292
|
+
};
|
|
30293
|
+
|
|
30294
|
+
// data/city-property/atlanta.json
|
|
30295
|
+
var atlanta_default = {
|
|
30296
|
+
slug: "atlanta",
|
|
30297
|
+
city: "Atlanta",
|
|
30298
|
+
state: "Georgia",
|
|
30299
|
+
stateAbbrev: "GA",
|
|
30300
|
+
countyName: "Fulton County",
|
|
30301
|
+
countySlug: "fulton-county",
|
|
30302
|
+
lastVerified: "2026-07-26",
|
|
30303
|
+
scopeNote: "Covers permits issued by the City of Atlanta. Addresses in unincorporated Fulton or DeKalb County file with the county instead.",
|
|
30304
|
+
datasets: {
|
|
30305
|
+
permits: {
|
|
30306
|
+
kind: "permits",
|
|
30307
|
+
tabLabel: "Building Permits",
|
|
30308
|
+
type: "arcgis",
|
|
30309
|
+
url: "https://services5.arcgis.com/5RxyIIJ9boPdptdo/arcgis/rest/services/building_permit_featureLayer/FeatureServer/0",
|
|
30310
|
+
orderField: "OrigOpened",
|
|
30311
|
+
coverage: "City of Atlanta building permits, about 34,000 records, updated daily. Covers residential and commercial work from first application through certificate of occupancy.",
|
|
30312
|
+
recordLabel: "Permit",
|
|
30313
|
+
openedLabel: "Opened",
|
|
30314
|
+
closedLabel: "Status updated",
|
|
30315
|
+
fields: {
|
|
30316
|
+
address: "Address",
|
|
30317
|
+
recordNumber: "RecordID",
|
|
30318
|
+
type: "TypeCombo",
|
|
30319
|
+
description: "Name",
|
|
30320
|
+
status: "Status_1",
|
|
30321
|
+
value: "JOB_VALUE",
|
|
30322
|
+
openedDate: "OrigOpened",
|
|
30323
|
+
closedDate: "StatusDate",
|
|
30324
|
+
link: "ACA_Link"
|
|
30325
|
+
}
|
|
30326
|
+
}
|
|
30327
|
+
},
|
|
30328
|
+
source: {
|
|
30329
|
+
name: "City of Atlanta GIS",
|
|
30330
|
+
url: "https://gis.atlantaga.gov/",
|
|
30331
|
+
license: "Public record (City of Atlanta)",
|
|
30332
|
+
portalLabel: "Atlanta GIS",
|
|
30333
|
+
currentRecordsNote: "Permits are published by the Atlanta Office of Buildings and feed the city's Building Permit Tracker.",
|
|
30334
|
+
currentRecordsUrl: "https://gis.atlantaga.gov/"
|
|
30335
|
+
}
|
|
30336
|
+
};
|
|
30337
|
+
|
|
30338
|
+
// data/city-property/phoenix.json
|
|
30339
|
+
var phoenix_default = {
|
|
30340
|
+
slug: "phoenix",
|
|
30341
|
+
city: "Phoenix",
|
|
30342
|
+
state: "Arizona",
|
|
30343
|
+
stateAbbrev: "AZ",
|
|
30344
|
+
countyName: "Maricopa County",
|
|
30345
|
+
countySlug: "maricopa-county",
|
|
30346
|
+
lastVerified: "2026-07-26",
|
|
30347
|
+
scopeNote: "Covers permits issued by the City of Phoenix. Addresses in unincorporated Maricopa County, or in neighboring cities such as Scottsdale, Mesa, and Glendale, file with their own jurisdiction.",
|
|
30348
|
+
datasets: {
|
|
30349
|
+
permits: {
|
|
30350
|
+
kind: "permits",
|
|
30351
|
+
tabLabel: "Building Permits",
|
|
30352
|
+
type: "arcgis",
|
|
30353
|
+
url: "https://maps.phoenix.gov/pub/rest/services/Public/Planning_Permit/MapServer/1",
|
|
30354
|
+
orderField: "PER_ENT_DATE",
|
|
30355
|
+
coverage: "City of Phoenix permits, about 70,000 records entered since January 2015. Planning and Development publishes building, fire, sign, and solar permits together, and each record shows whether it is open, done, expired, or void.",
|
|
30356
|
+
recordLabel: "Permit",
|
|
30357
|
+
openedLabel: "Entered",
|
|
30358
|
+
closedLabel: "Completed",
|
|
30359
|
+
fields: {
|
|
30360
|
+
address: "STREET_FULL_NAME",
|
|
30361
|
+
recordNumber: "PER_NUM",
|
|
30362
|
+
type: "PER_TYPE_DESC",
|
|
30363
|
+
description: "SCOPE_DESC",
|
|
30364
|
+
status: "PERMIT_STAT",
|
|
30365
|
+
contractor: "PROFESS_NAME",
|
|
30366
|
+
openedDate: "PER_ENT_DATE",
|
|
30367
|
+
closedDate: "PER_COMPL_DATE"
|
|
30368
|
+
}
|
|
30369
|
+
}
|
|
30370
|
+
},
|
|
30371
|
+
source: {
|
|
30372
|
+
name: "City of Phoenix GIS",
|
|
30373
|
+
url: "https://maps.phoenix.gov/",
|
|
30374
|
+
license: "Public record (City of Phoenix)",
|
|
30375
|
+
portalLabel: "Phoenix Open Data",
|
|
30376
|
+
currentRecordsNote: "Permits are published by Phoenix Planning and Development on the city's public map server.",
|
|
30377
|
+
currentRecordsUrl: "https://www.phoenix.gov/pdd"
|
|
30378
|
+
}
|
|
30379
|
+
};
|
|
30380
|
+
|
|
30381
|
+
// data/city-zoning/index.json
|
|
30382
|
+
var city_zoning_default = {
|
|
30383
|
+
lastUpdated: "2026-10-12",
|
|
30384
|
+
cities: [
|
|
30385
|
+
{
|
|
30386
|
+
slug: "austin",
|
|
30387
|
+
city: "Austin",
|
|
30388
|
+
state: "Texas",
|
|
30389
|
+
stateAbbrev: "TX",
|
|
30390
|
+
countyName: "Travis County",
|
|
30391
|
+
countySlug: "travis-county",
|
|
30392
|
+
populated: true,
|
|
30393
|
+
provider: "City of Austin Open Data (Socrata)"
|
|
30394
|
+
},
|
|
30395
|
+
{
|
|
30396
|
+
slug: "dallas",
|
|
30397
|
+
city: "Dallas",
|
|
30398
|
+
state: "Texas",
|
|
30399
|
+
stateAbbrev: "TX",
|
|
30400
|
+
countyName: "Dallas County",
|
|
30401
|
+
countySlug: "dallas-county",
|
|
30402
|
+
populated: true,
|
|
30403
|
+
provider: "City of Dallas GIS (base zoning layer)"
|
|
30404
|
+
},
|
|
30405
|
+
{
|
|
30406
|
+
slug: "nashville",
|
|
30407
|
+
city: "Nashville",
|
|
30408
|
+
state: "Tennessee",
|
|
30409
|
+
stateAbbrev: "TN",
|
|
30410
|
+
countyName: "Davidson County",
|
|
30411
|
+
countySlug: "davidson-county",
|
|
30412
|
+
populated: true,
|
|
30413
|
+
provider: "Metro Nashville Planning (ArcGIS Development Tracker)"
|
|
30414
|
+
},
|
|
30415
|
+
{
|
|
30416
|
+
slug: "denver",
|
|
30417
|
+
city: "Denver",
|
|
30418
|
+
state: "Colorado",
|
|
30419
|
+
stateAbbrev: "CO",
|
|
30420
|
+
countyName: "Denver County",
|
|
30421
|
+
countySlug: "denver-county",
|
|
30422
|
+
populated: true,
|
|
30423
|
+
provider: "Denver GIS Zone Map Amendments (location lookup)"
|
|
30424
|
+
},
|
|
30425
|
+
{
|
|
30426
|
+
slug: "charlotte",
|
|
30427
|
+
city: "Charlotte",
|
|
30428
|
+
state: "North Carolina",
|
|
30429
|
+
stateAbbrev: "NC",
|
|
30430
|
+
countyName: "Mecklenburg County",
|
|
30431
|
+
countySlug: "mecklenburg-county",
|
|
30432
|
+
populated: true,
|
|
30433
|
+
provider: "Charlotte Planning Rezonings (location lookup)"
|
|
30434
|
+
},
|
|
30435
|
+
{
|
|
30436
|
+
slug: "boston",
|
|
30437
|
+
city: "Boston",
|
|
30438
|
+
state: "Massachusetts",
|
|
30439
|
+
stateAbbrev: "MA",
|
|
30440
|
+
countyName: "Suffolk County",
|
|
30441
|
+
populated: true,
|
|
30442
|
+
provider: "BPDA Article 80 database (ArcGIS)"
|
|
30443
|
+
},
|
|
30444
|
+
{
|
|
30445
|
+
slug: "atlanta",
|
|
30446
|
+
city: "Atlanta",
|
|
30447
|
+
state: "Georgia",
|
|
30448
|
+
stateAbbrev: "GA",
|
|
30449
|
+
countyName: "Fulton County",
|
|
30450
|
+
countySlug: "fulton-county",
|
|
30451
|
+
populated: true,
|
|
30452
|
+
provider: "Atlanta GIS rezoning cases (location lookup)"
|
|
30453
|
+
},
|
|
30454
|
+
{
|
|
30455
|
+
slug: "new-orleans",
|
|
30456
|
+
city: "New Orleans",
|
|
30457
|
+
state: "Louisiana",
|
|
30458
|
+
stateAbbrev: "LA",
|
|
30459
|
+
countyName: "Orleans Parish",
|
|
30460
|
+
countySlug: "orleans-parish",
|
|
30461
|
+
populated: true,
|
|
30462
|
+
provider: "NOLA Open Data CPC Projects (Socrata)"
|
|
30463
|
+
},
|
|
30464
|
+
{
|
|
30465
|
+
slug: "tampa",
|
|
30466
|
+
city: "Tampa",
|
|
30467
|
+
state: "Florida",
|
|
30468
|
+
stateAbbrev: "FL",
|
|
30469
|
+
countyName: "Hillsborough County",
|
|
30470
|
+
countySlug: "hillsborough-county",
|
|
30471
|
+
populated: true,
|
|
30472
|
+
provider: "Tampa Development Coordination (ArcGIS)"
|
|
30473
|
+
},
|
|
30474
|
+
{
|
|
30475
|
+
slug: "indianapolis",
|
|
30476
|
+
city: "Indianapolis",
|
|
30477
|
+
state: "Indiana",
|
|
30478
|
+
stateAbbrev: "IN",
|
|
30479
|
+
countyName: "Marion County",
|
|
30480
|
+
countySlug: "marion-county",
|
|
30481
|
+
populated: true,
|
|
30482
|
+
provider: "IndyGIS rezoning layer (ArcGIS)"
|
|
30483
|
+
},
|
|
30484
|
+
{
|
|
30485
|
+
slug: "durham",
|
|
30486
|
+
city: "Durham",
|
|
30487
|
+
state: "North Carolina",
|
|
30488
|
+
stateAbbrev: "NC",
|
|
30489
|
+
countyName: "Durham County",
|
|
30490
|
+
countySlug: "durham-county",
|
|
30491
|
+
populated: true,
|
|
30492
|
+
provider: "Durham WebGIS zoning cases (location lookup)"
|
|
30493
|
+
},
|
|
30494
|
+
{
|
|
30495
|
+
slug: "washington-dc",
|
|
30496
|
+
city: "Washington",
|
|
30497
|
+
state: "District of Columbia",
|
|
30498
|
+
stateAbbrev: "DC",
|
|
30499
|
+
countyName: "District of Columbia",
|
|
30500
|
+
countySlug: "district-of-columbia",
|
|
30501
|
+
populated: true,
|
|
30502
|
+
provider: "DC Office of Zoning case table (ArcGIS)"
|
|
30503
|
+
},
|
|
30504
|
+
{
|
|
30505
|
+
slug: "nyc",
|
|
30506
|
+
city: "New York",
|
|
30507
|
+
state: "New York",
|
|
30508
|
+
stateAbbrev: "NY",
|
|
30509
|
+
countyName: "New York County",
|
|
30510
|
+
countySlug: "new-york-county",
|
|
30511
|
+
populated: true,
|
|
30512
|
+
provider: "NYC Open Data ZAP (parcel lookup via GeoSearch)"
|
|
30513
|
+
},
|
|
30514
|
+
{
|
|
30515
|
+
slug: "los-angeles",
|
|
30516
|
+
city: "Los Angeles",
|
|
30517
|
+
state: "California",
|
|
30518
|
+
stateAbbrev: "CA",
|
|
30519
|
+
countyName: "Los Angeles County",
|
|
30520
|
+
countySlug: "los-angeles-county",
|
|
30521
|
+
populated: true,
|
|
30522
|
+
provider: "LA City Planning PCTS filings (ArcGIS)"
|
|
30523
|
+
},
|
|
30524
|
+
{
|
|
30525
|
+
slug: "fort-worth",
|
|
30526
|
+
city: "Fort Worth",
|
|
30527
|
+
state: "Texas",
|
|
30528
|
+
stateAbbrev: "TX",
|
|
30529
|
+
countyName: "Tarrant County",
|
|
30530
|
+
countySlug: "tarrant-county",
|
|
30531
|
+
populated: true,
|
|
30532
|
+
provider: "Fort Worth MapIt zoning cases (ArcGIS)"
|
|
30533
|
+
},
|
|
30534
|
+
{
|
|
30535
|
+
slug: "raleigh",
|
|
30536
|
+
city: "Raleigh",
|
|
30537
|
+
state: "North Carolina",
|
|
30538
|
+
stateAbbrev: "NC",
|
|
30539
|
+
countyName: "Wake County",
|
|
30540
|
+
countySlug: "wake-county",
|
|
30541
|
+
populated: true,
|
|
30542
|
+
provider: "Raleigh rezoning requests (ArcGIS)"
|
|
30543
|
+
},
|
|
30544
|
+
{
|
|
30545
|
+
slug: "boise",
|
|
30546
|
+
city: "Boise",
|
|
30547
|
+
state: "Idaho",
|
|
30548
|
+
stateAbbrev: "ID",
|
|
30549
|
+
countyName: "Ada County",
|
|
30550
|
+
countySlug: "ada-county",
|
|
30551
|
+
populated: true,
|
|
30552
|
+
provider: "Boise Development Tracker (ArcGIS)"
|
|
30553
|
+
}
|
|
30554
|
+
]
|
|
30555
|
+
};
|
|
30556
|
+
|
|
30557
|
+
// data/city-zoning/austin.json
|
|
30558
|
+
var austin_default2 = {
|
|
30559
|
+
slug: "austin",
|
|
30560
|
+
city: "Austin",
|
|
30561
|
+
state: "Texas",
|
|
30562
|
+
stateAbbrev: "TX",
|
|
30563
|
+
countyName: "Travis County",
|
|
30564
|
+
countySlug: "travis-county",
|
|
30565
|
+
lastVerified: "2026-06-27",
|
|
30566
|
+
kind: "cases",
|
|
30567
|
+
cases: {
|
|
30568
|
+
type: "socrata",
|
|
30569
|
+
url: "https://data.austintexas.gov/resource/edir-dcnf.json",
|
|
30570
|
+
orderField: "application_start_date",
|
|
30571
|
+
nullSentinels: ["999"],
|
|
30572
|
+
fields: {
|
|
30573
|
+
caseNumber: "case_number",
|
|
30574
|
+
caseName: "case_name",
|
|
30575
|
+
address: "site_address",
|
|
30576
|
+
caseType: "case_type",
|
|
30577
|
+
status: "detailed_status",
|
|
30578
|
+
proposedZoning: "proposed_zoning",
|
|
30579
|
+
existingZoning: "existing_zoning",
|
|
30580
|
+
proposedLandUse: "proposed_land_use",
|
|
30581
|
+
existingLandUse: "existing_land_use",
|
|
30582
|
+
ownerName: "owner_fullname",
|
|
30583
|
+
ownerOrg: "owner_organization_name",
|
|
30584
|
+
appliedDate: "application_start_date",
|
|
30585
|
+
statusDate: "status_date",
|
|
30586
|
+
district: "council_district",
|
|
30587
|
+
link: "link"
|
|
30588
|
+
},
|
|
30589
|
+
statusBuckets: {
|
|
30590
|
+
active: [
|
|
30591
|
+
"In Review",
|
|
30592
|
+
"Pending",
|
|
30593
|
+
"Scheduled for Hearing",
|
|
30594
|
+
"Scheduled for Council Hearing",
|
|
30595
|
+
"Notice Sent",
|
|
30596
|
+
"Notice Requested",
|
|
30597
|
+
"Notice/Hearing Determination",
|
|
30598
|
+
"Case Assigned",
|
|
30599
|
+
"Awaiting Update",
|
|
30600
|
+
"In Progress",
|
|
30601
|
+
"Postponed",
|
|
30602
|
+
"Recommended for Approval",
|
|
30603
|
+
"Reading Approved"
|
|
30604
|
+
],
|
|
30605
|
+
approved: ["Approved", "Approved and Released", "Partial Approval"],
|
|
30606
|
+
closed: ["Closed", "Withdrawn", "Expired", "Denied", "Aborted", "VOID", "Cancelled"]
|
|
30607
|
+
}
|
|
30608
|
+
},
|
|
30609
|
+
zoningByAddress: {
|
|
30610
|
+
type: "socrata",
|
|
30611
|
+
url: "https://data.austintexas.gov/resource/nbzi-qabm.json",
|
|
30612
|
+
fields: {
|
|
30613
|
+
address: "full_street_name",
|
|
30614
|
+
baseZone: "base_zone",
|
|
30615
|
+
baseZoneCategory: "base_zone_category",
|
|
30616
|
+
zoneType: "zoning_ztype"
|
|
30617
|
+
}
|
|
30618
|
+
},
|
|
30619
|
+
zoneGlossary: {
|
|
30620
|
+
"SF-1": "Single Family Large Lot",
|
|
30621
|
+
"SF-2": "Single Family Standard Lot",
|
|
30622
|
+
"SF-3": "Single Family Residence",
|
|
30623
|
+
"SF-4A": "Single Family Small Lot",
|
|
30624
|
+
"SF-4B": "Single Family Condominium",
|
|
30625
|
+
"SF-5": "Urban Family Residence",
|
|
30626
|
+
"SF-6": "Townhouse and Condominium",
|
|
30627
|
+
"MF-1": "Multi-Family Limited Density",
|
|
30628
|
+
"MF-2": "Multi-Family Limited Density",
|
|
30629
|
+
"MF-3": "Multi-Family Moderate Density",
|
|
30630
|
+
"MF-4": "Multi-Family Moderate-High Density",
|
|
30631
|
+
"MF-5": "Multi-Family High Density",
|
|
30632
|
+
"MF-6": "Multi-Family Highest Density",
|
|
30633
|
+
RR: "Rural Residence",
|
|
30634
|
+
LA: "Lake Austin Residence",
|
|
30635
|
+
MH: "Mobile Home Residence",
|
|
30636
|
+
NO: "Neighborhood Office",
|
|
30637
|
+
LO: "Limited Office",
|
|
30638
|
+
GO: "General Office",
|
|
30639
|
+
LR: "Neighborhood Commercial",
|
|
30640
|
+
GR: "Community Commercial",
|
|
30641
|
+
CS: "General Commercial Services",
|
|
30642
|
+
"CS-1": "Commercial-Liquor Sales",
|
|
30643
|
+
CH: "Commercial Highway",
|
|
30644
|
+
CR: "Commercial Recreation",
|
|
30645
|
+
L: "Lake Commercial",
|
|
30646
|
+
"W/LO": "Warehouse Limited Office",
|
|
30647
|
+
IP: "Industrial Park",
|
|
30648
|
+
LI: "Limited Industrial Services",
|
|
30649
|
+
MI: "Major Industry",
|
|
30650
|
+
"R&D": "Research and Development",
|
|
30651
|
+
AV: "Aviation Services",
|
|
30652
|
+
AG: "Agricultural",
|
|
30653
|
+
DR: "Development Reserve",
|
|
30654
|
+
P: "Public",
|
|
30655
|
+
UNZ: "Unzoned",
|
|
30656
|
+
PUD: "Planned Unit Development",
|
|
30657
|
+
CBD: "Central Business District",
|
|
30658
|
+
DMU: "Downtown Mixed Use",
|
|
30659
|
+
TOD: "Transit-Oriented Development",
|
|
30660
|
+
TND: "Traditional Neighborhood District",
|
|
30661
|
+
NBG: "North Burnet/Gateway District",
|
|
30662
|
+
ERC: "East Riverside Corridor"
|
|
30663
|
+
},
|
|
30664
|
+
source: {
|
|
30665
|
+
name: "City of Austin Open Data",
|
|
30666
|
+
url: "https://data.austintexas.gov/",
|
|
30667
|
+
datasetUrl: "https://data.austintexas.gov/d/edir-dcnf",
|
|
30668
|
+
license: "Public domain (City of Austin)",
|
|
30669
|
+
portalLabel: "City of Austin AB+C permit & case portal"
|
|
30670
|
+
}
|
|
30671
|
+
};
|
|
30672
|
+
|
|
30673
|
+
// data/city-zoning/dallas.json
|
|
30674
|
+
var dallas_default2 = {
|
|
30675
|
+
slug: "dallas",
|
|
30676
|
+
city: "Dallas",
|
|
30677
|
+
state: "Texas",
|
|
30678
|
+
stateAbbrev: "TX",
|
|
30679
|
+
countyName: "Dallas County",
|
|
30680
|
+
countySlug: "dallas-county",
|
|
30681
|
+
lastVerified: "2026-06-28",
|
|
30682
|
+
kind: "current-zoning",
|
|
30683
|
+
currentZoning: {
|
|
30684
|
+
type: "arcgis",
|
|
30685
|
+
url: "https://services5.arcgis.com/74bZbbuf05Ctvbzv/arcgis/rest/services/City_of_Dallas_Base_Zoning/FeatureServer/21",
|
|
30686
|
+
geocoder: {
|
|
30687
|
+
provider: "nominatim",
|
|
30688
|
+
context: "Dallas, TX"
|
|
30689
|
+
},
|
|
30690
|
+
fields: {
|
|
30691
|
+
zoneDist: "ZONE_DIST",
|
|
30692
|
+
longZoneDist: "LONG_ZONE_DIST",
|
|
30693
|
+
pdNum: "PD_NUM",
|
|
30694
|
+
caseNumber: "CASE_NUMBER",
|
|
30695
|
+
effectiveDate: "EFFECTIVEDATE",
|
|
30696
|
+
districtUse: "DISTRICTUSE"
|
|
30697
|
+
}
|
|
30698
|
+
},
|
|
30699
|
+
source: {
|
|
30700
|
+
name: "City of Dallas GIS",
|
|
30701
|
+
url: "https://gis.dallascityhall.com/",
|
|
30702
|
+
datasetUrl: "https://services5.arcgis.com/74bZbbuf05Ctvbzv/arcgis/rest/services/City_of_Dallas_Base_Zoning/FeatureServer/21",
|
|
30703
|
+
license: "Public record (City of Dallas)",
|
|
30704
|
+
portalLabel: "City of Dallas GIS"
|
|
30705
|
+
}
|
|
30706
|
+
};
|
|
30707
|
+
|
|
30708
|
+
// data/city-zoning/nashville.json
|
|
30709
|
+
var nashville_default2 = {
|
|
30710
|
+
slug: "nashville",
|
|
30711
|
+
city: "Nashville",
|
|
30712
|
+
state: "Tennessee",
|
|
30713
|
+
stateAbbrev: "TN",
|
|
30714
|
+
countyName: "Davidson County",
|
|
30715
|
+
countySlug: "davidson-county",
|
|
30716
|
+
lastVerified: "2026-08-24",
|
|
30717
|
+
kind: "cases",
|
|
30718
|
+
cases: {
|
|
30719
|
+
type: "arcgis",
|
|
30720
|
+
url: "https://services2.arcgis.com/HdTo6HJqh92wn4D8/arcgis/rest/services/Development_Tracker_Cases_view/FeatureServer/0",
|
|
30721
|
+
orderField: "DATE_ACCEPTED",
|
|
30722
|
+
where: "CASE_TYPE_DESC='MPC Rezoning'",
|
|
30723
|
+
fields: {
|
|
30724
|
+
caseNumber: "MPCNUM",
|
|
30725
|
+
caseName: "CAPTION",
|
|
30726
|
+
address: "LOCATION_DESC",
|
|
30727
|
+
caseType: "CASE_TYPE_DESC",
|
|
30728
|
+
status: "PSTAT",
|
|
30729
|
+
proposedZoning: "NewZoning",
|
|
30730
|
+
existingZoning: "ExistingZoning",
|
|
30731
|
+
appliedDate: "DATE_ACCEPTED",
|
|
30732
|
+
district: "CD"
|
|
30733
|
+
},
|
|
30734
|
+
statusBuckets: {
|
|
30735
|
+
active: [
|
|
30736
|
+
"New",
|
|
30737
|
+
"Active",
|
|
30738
|
+
"Pending"
|
|
30739
|
+
],
|
|
30740
|
+
closed: [
|
|
30741
|
+
"Complete"
|
|
30742
|
+
]
|
|
30743
|
+
}
|
|
30744
|
+
},
|
|
30745
|
+
source: {
|
|
30746
|
+
name: "Metro Nashville Planning Department",
|
|
30747
|
+
url: "https://www.nashville.gov/departments/planning",
|
|
30748
|
+
license: "Public record (Metro Nashville)",
|
|
30749
|
+
portalLabel: "Nashville Development Tracker",
|
|
30750
|
+
currentRecordsNote: "Rezoning cases come from the Planning Department's Development Tracker layer, updated near-daily; MPC rezonings also require Metro Council passage after the commission hearing.",
|
|
30751
|
+
currentRecordsUrl: "https://experience.arcgis.com/experience/ba7f16fe1fa24d31a1f465d68d68b8d5"
|
|
30752
|
+
}
|
|
30753
|
+
};
|
|
30754
|
+
|
|
30755
|
+
// data/city-zoning/denver.json
|
|
30756
|
+
var denver_default2 = {
|
|
30757
|
+
slug: "denver",
|
|
30758
|
+
city: "Denver",
|
|
30759
|
+
state: "Colorado",
|
|
30760
|
+
stateAbbrev: "CO",
|
|
30761
|
+
countyName: "Denver County",
|
|
30762
|
+
countySlug: "denver-county",
|
|
30763
|
+
lastVerified: "2026-08-24",
|
|
30764
|
+
kind: "cases",
|
|
30765
|
+
cases: {
|
|
30766
|
+
type: "arcgis",
|
|
30767
|
+
url: "https://services1.arcgis.com/zdB7qR0BtYrg0Xpl/arcgis/rest/services/ODC_ZONE_MAPAMENDMENTS_A/FeatureServer/356",
|
|
30768
|
+
lookup: "location",
|
|
30769
|
+
geocoder: {
|
|
30770
|
+
provider: "nominatim",
|
|
30771
|
+
context: "Denver, Colorado"
|
|
30772
|
+
},
|
|
30773
|
+
orderField: "APP_DATE",
|
|
30774
|
+
fields: {
|
|
30775
|
+
caseNumber: "APP_NUM",
|
|
30776
|
+
status: "STATUS",
|
|
30777
|
+
existingZoning: "FROM_ZONE_DESC",
|
|
30778
|
+
proposedZoning: "ZONE_DISTRICT",
|
|
30779
|
+
appliedDate: "APP_DATE",
|
|
30780
|
+
statusDate: "PASSED_DATE",
|
|
30781
|
+
district: "COUNCIL_DIST"
|
|
30782
|
+
},
|
|
30783
|
+
statusBuckets: {
|
|
30784
|
+
active: [
|
|
30785
|
+
"Pending"
|
|
30786
|
+
],
|
|
30787
|
+
approved: [
|
|
30788
|
+
"Passed"
|
|
30789
|
+
]
|
|
30790
|
+
}
|
|
30791
|
+
},
|
|
30792
|
+
source: {
|
|
30793
|
+
name: "Denver Community Planning and Development",
|
|
30794
|
+
url: "https://www.denvergov.org/Government/Agencies-Departments-Offices/Agencies-Departments-Offices-Directory/Community-Planning-and-Development",
|
|
30795
|
+
license: "Public record (City and County of Denver)",
|
|
30796
|
+
portalLabel: "Denver Open Data (GIS)",
|
|
30797
|
+
currentRecordsNote: "Zone map amendments (rezonings) come from Denver's official GIS Zone Map Amendments layer, filings back to 2004 with near-daily activity. The docket is published on parcel shapes rather than addresses, so the tool locates your address and asks the layer what intersects it.",
|
|
30798
|
+
currentRecordsUrl: "https://www.denvergov.org/opendata"
|
|
30799
|
+
}
|
|
30800
|
+
};
|
|
30801
|
+
|
|
30802
|
+
// data/city-zoning/charlotte.json
|
|
30803
|
+
var charlotte_default2 = {
|
|
30804
|
+
slug: "charlotte",
|
|
30805
|
+
city: "Charlotte",
|
|
30806
|
+
state: "North Carolina",
|
|
30807
|
+
stateAbbrev: "NC",
|
|
30808
|
+
countyName: "Mecklenburg County",
|
|
30809
|
+
countySlug: "mecklenburg-county",
|
|
30810
|
+
lastVerified: "2026-08-24",
|
|
30811
|
+
kind: "cases",
|
|
30812
|
+
cases: {
|
|
30813
|
+
type: "arcgis",
|
|
30814
|
+
url: "https://gis.charlottenc.gov/arcgis/rest/services/PLN/Rezonings/MapServer/0",
|
|
30815
|
+
lookup: "location",
|
|
30816
|
+
geocoder: {
|
|
30817
|
+
provider: "nominatim",
|
|
30818
|
+
context: "Charlotte, North Carolina"
|
|
30819
|
+
},
|
|
30820
|
+
orderField: "Received",
|
|
30821
|
+
fields: {
|
|
30822
|
+
caseNumber: "Petition",
|
|
30823
|
+
status: "Status",
|
|
30824
|
+
existingZoning: "ExistZone",
|
|
30825
|
+
proposedZoning: "ReqZone",
|
|
30826
|
+
appliedDate: "Received",
|
|
30827
|
+
statusDate: "Approved",
|
|
30828
|
+
link: "Hyperlink"
|
|
30829
|
+
},
|
|
30830
|
+
statusBuckets: {
|
|
30831
|
+
active: [
|
|
30832
|
+
"Pen"
|
|
30833
|
+
]
|
|
30834
|
+
}
|
|
30835
|
+
},
|
|
30836
|
+
source: {
|
|
30837
|
+
name: "Charlotte Planning, Design & Development",
|
|
30838
|
+
url: "https://www.charlottenc.gov/Growth-and-Development/Planning-and-Development",
|
|
30839
|
+
license: "Public record (City of Charlotte)",
|
|
30840
|
+
portalLabel: "Charlotte Open Mapping",
|
|
30841
|
+
currentRecordsNote: "Rezoning petitions come from Charlotte's own GIS rezonings layer; approved petitions get folded into the base zoning map, so this docket is mostly currently-active cases. Published on parcel shapes, so the tool locates your address and asks what intersects it.",
|
|
30842
|
+
currentRecordsUrl: "https://data.charlottenc.gov/"
|
|
30843
|
+
}
|
|
30844
|
+
};
|
|
30845
|
+
|
|
30846
|
+
// data/city-zoning/boston.json
|
|
30847
|
+
var boston_default2 = {
|
|
30848
|
+
slug: "boston",
|
|
30849
|
+
city: "Boston",
|
|
30850
|
+
state: "Massachusetts",
|
|
30851
|
+
stateAbbrev: "MA",
|
|
30852
|
+
countyName: "Suffolk County",
|
|
30853
|
+
lastVerified: "2026-08-24",
|
|
30854
|
+
kind: "cases",
|
|
30855
|
+
cases: {
|
|
30856
|
+
type: "arcgis",
|
|
30857
|
+
url: "https://gis.bostonplans.org/hosting/rest/services/Hosted/A80_project_points_display/FeatureServer/0",
|
|
30858
|
+
orderField: "last_filed_date",
|
|
30859
|
+
caseLabel: "Article 80 development review",
|
|
30860
|
+
fields: {
|
|
30861
|
+
caseName: "project_name",
|
|
30862
|
+
address: "project_street_name",
|
|
30863
|
+
addressParts: [
|
|
30864
|
+
"project_street_number",
|
|
30865
|
+
"project_street_name",
|
|
30866
|
+
"project_street_suffix"
|
|
30867
|
+
],
|
|
30868
|
+
status: "project_status",
|
|
30869
|
+
appliedDate: "last_filed_date",
|
|
30870
|
+
statusDate: "last_board_approved_date",
|
|
30871
|
+
district: "neighborhood",
|
|
30872
|
+
link: "website_url"
|
|
30873
|
+
},
|
|
30874
|
+
statusBuckets: {
|
|
30875
|
+
active: [
|
|
30876
|
+
"Letter of Intent",
|
|
30877
|
+
"Prefile (Default)",
|
|
30878
|
+
"Under Review"
|
|
30879
|
+
],
|
|
30880
|
+
approved: [
|
|
30881
|
+
"Board Approved",
|
|
30882
|
+
"Permitted / Under Construction"
|
|
30883
|
+
],
|
|
30884
|
+
closed: [
|
|
30885
|
+
"Construction Complete"
|
|
30886
|
+
]
|
|
30887
|
+
}
|
|
30888
|
+
},
|
|
30889
|
+
source: {
|
|
30890
|
+
name: "Boston Planning Department (BPDA)",
|
|
30891
|
+
url: "https://www.bostonplans.org/",
|
|
30892
|
+
license: "Public record (BPDA)",
|
|
30893
|
+
portalLabel: "BPDA Article 80 database",
|
|
30894
|
+
currentRecordsNote: "Boston does not run a rezoning-case docket the way Texas cities do; large and small projects go through Article 80 development review instead, and that is the docket shown here - filings back to 1998, updated as projects move. Existing and proposed zoning columns genuinely do not apply to this process.",
|
|
30895
|
+
currentRecordsUrl: "https://www.bostonplans.org/projects/development-projects"
|
|
30896
|
+
}
|
|
30897
|
+
};
|
|
30898
|
+
|
|
30899
|
+
// data/city-zoning/atlanta.json
|
|
30900
|
+
var atlanta_default2 = {
|
|
30901
|
+
slug: "atlanta",
|
|
30902
|
+
city: "Atlanta",
|
|
30903
|
+
state: "Georgia",
|
|
30904
|
+
stateAbbrev: "GA",
|
|
30905
|
+
countyName: "Fulton County",
|
|
30906
|
+
countySlug: "fulton-county",
|
|
30907
|
+
lastVerified: "2026-08-24",
|
|
30908
|
+
kind: "cases",
|
|
30909
|
+
cases: {
|
|
30910
|
+
type: "arcgis",
|
|
30911
|
+
url: "https://gis.atlantaga.gov/dpcd/rest/services/OpenDataService1/FeatureServer/23",
|
|
30912
|
+
lookup: "location",
|
|
30913
|
+
geocoder: {
|
|
30914
|
+
provider: "nominatim",
|
|
30915
|
+
context: "Atlanta, Georgia"
|
|
30916
|
+
},
|
|
30917
|
+
orderField: "CREATED_DATE",
|
|
30918
|
+
fields: {
|
|
30919
|
+
caseNumber: "DOCKET_NO",
|
|
30920
|
+
status: "STATUSTYPE",
|
|
30921
|
+
existingZoning: "FROM_ZONE",
|
|
30922
|
+
proposedZoning: "TO_ZONE",
|
|
30923
|
+
appliedDate: "CREATED_DATE",
|
|
30924
|
+
statusDate: "FINAL_UPDA"
|
|
30925
|
+
},
|
|
30926
|
+
statusBuckets: {
|
|
30927
|
+
active: [
|
|
30928
|
+
"Filed",
|
|
30929
|
+
"Pending",
|
|
30930
|
+
"Correction"
|
|
30931
|
+
],
|
|
30932
|
+
approved: [
|
|
30933
|
+
"Complete"
|
|
30934
|
+
],
|
|
30935
|
+
closed: [
|
|
30936
|
+
"Denied"
|
|
30937
|
+
]
|
|
30938
|
+
}
|
|
30939
|
+
},
|
|
30940
|
+
source: {
|
|
30941
|
+
name: "Atlanta Department of City Planning",
|
|
30942
|
+
url: "https://www.atlantaga.gov/government/departments/city-planning",
|
|
30943
|
+
license: "Public record (City of Atlanta)",
|
|
30944
|
+
portalLabel: "Atlanta GIS (DPCD)",
|
|
30945
|
+
currentRecordsNote: "Rezoning dockets come from Atlanta's own GIS rezoning-cases layer with days-old activity. Published on parcel shapes, so the tool locates your address and asks what intersects it. The layer's STATUS column is internal workflow debris; the clean STATUSTYPE vocabulary is what renders here.",
|
|
30946
|
+
currentRecordsUrl: "https://gis.atlantaga.gov/"
|
|
30947
|
+
}
|
|
30948
|
+
};
|
|
30949
|
+
|
|
30950
|
+
// data/city-zoning/new-orleans.json
|
|
30951
|
+
var new_orleans_default = {
|
|
30952
|
+
slug: "new-orleans",
|
|
30953
|
+
city: "New Orleans",
|
|
30954
|
+
state: "Louisiana",
|
|
30955
|
+
stateAbbrev: "LA",
|
|
30956
|
+
countyName: "Orleans Parish",
|
|
30957
|
+
countySlug: "orleans-parish",
|
|
30958
|
+
lastVerified: "2026-08-24",
|
|
30959
|
+
kind: "cases",
|
|
30960
|
+
cases: {
|
|
30961
|
+
type: "socrata",
|
|
30962
|
+
url: "https://data.nola.gov/resource/xxb5-5azv.json",
|
|
30963
|
+
orderField: "filing_date",
|
|
30964
|
+
where: "case_type='Zoning Change'",
|
|
30965
|
+
fields: {
|
|
30966
|
+
caseNumber: "case_num",
|
|
30967
|
+
address: "address",
|
|
30968
|
+
caseType: "case_type",
|
|
30969
|
+
status: "current_status",
|
|
30970
|
+
appliedDate: "filing_date"
|
|
30971
|
+
},
|
|
30972
|
+
statusBuckets: {
|
|
30973
|
+
active: [
|
|
30974
|
+
"Application Submitted",
|
|
30975
|
+
"Completeness Review",
|
|
30976
|
+
"City Planning Commission Hearing",
|
|
30977
|
+
"Sign Posted by Applicant",
|
|
30978
|
+
"Mapping"
|
|
30979
|
+
],
|
|
30980
|
+
approved: [
|
|
30981
|
+
"City Council Ordinance - Approved",
|
|
30982
|
+
"Project Complete"
|
|
30983
|
+
],
|
|
30984
|
+
closed: [
|
|
30985
|
+
"Applicant Withdrew Petition",
|
|
30986
|
+
"Application Denied",
|
|
30987
|
+
"Application Returned to Applicant"
|
|
30988
|
+
]
|
|
30989
|
+
}
|
|
30990
|
+
},
|
|
30991
|
+
source: {
|
|
30992
|
+
name: "New Orleans City Planning Commission",
|
|
30993
|
+
url: "https://nola.gov/city-planning/",
|
|
30994
|
+
license: "Public record (City of New Orleans)",
|
|
30995
|
+
portalLabel: "NOLA Open Data (Socrata)",
|
|
30996
|
+
currentRecordsNote: "Zoning-change cases come from the CPC Projects dataset, updated daily, scoped here to case_type Zoning Change (the same dataset also tracks NPP notifications, a different process). Existing and proposed zoning appear only inside each case's prose description, not as columns.",
|
|
30997
|
+
currentRecordsUrl: "https://data.nola.gov/dataset/CPC-Projects/xxb5-5azv"
|
|
30998
|
+
}
|
|
30999
|
+
};
|
|
31000
|
+
|
|
31001
|
+
// data/city-zoning/tampa.json
|
|
31002
|
+
var tampa_default = {
|
|
31003
|
+
slug: "tampa",
|
|
31004
|
+
city: "Tampa",
|
|
31005
|
+
state: "Florida",
|
|
31006
|
+
stateAbbrev: "FL",
|
|
31007
|
+
countyName: "Hillsborough County",
|
|
31008
|
+
countySlug: "hillsborough-county",
|
|
31009
|
+
lastVerified: "2026-08-24",
|
|
31010
|
+
kind: "cases",
|
|
31011
|
+
cases: {
|
|
31012
|
+
type: "arcgis",
|
|
31013
|
+
url: "https://arcgis.tampagov.net/arcgis/rest/services/OpenData/Planning/MapServer/31",
|
|
31014
|
+
orderField: "CREATEDDATE",
|
|
31015
|
+
where: "RECORDALIAS='Rezoning'",
|
|
31016
|
+
fields: {
|
|
31017
|
+
caseNumber: "RECORDID",
|
|
31018
|
+
address: "ADDRESS",
|
|
31019
|
+
caseType: "RECORDALIAS",
|
|
31020
|
+
status: "APPSTATUS",
|
|
31021
|
+
appliedDate: "CREATEDDATE",
|
|
31022
|
+
statusDate: "LASTUPDATE",
|
|
31023
|
+
link: "URL"
|
|
31024
|
+
},
|
|
31025
|
+
statusBuckets: {
|
|
31026
|
+
active: [
|
|
31027
|
+
"In Process",
|
|
31028
|
+
"Awaiting Client Reply",
|
|
31029
|
+
"Open"
|
|
31030
|
+
]
|
|
31031
|
+
}
|
|
31032
|
+
},
|
|
31033
|
+
source: {
|
|
31034
|
+
name: "Tampa Development Coordination",
|
|
31035
|
+
url: "https://www.tampa.gov/development-and-growth-management",
|
|
31036
|
+
license: "Public record (City of Tampa)",
|
|
31037
|
+
portalLabel: "Tampa OpenData GIS",
|
|
31038
|
+
currentRecordsNote: "Rezoning cases come from Tampa's Development Coordination layer (Accela-backed), scoped here to the Rezoning record type; the same layer tracks variances, special uses, and other review types. The layer holds active cases and prunes on closure, so this is a live docket rather than an archive. No existing/proposed zoning columns are published.",
|
|
31039
|
+
currentRecordsUrl: "https://opendata.tampagov.net/"
|
|
31040
|
+
}
|
|
31041
|
+
};
|
|
31042
|
+
|
|
31043
|
+
// data/city-zoning/indianapolis.json
|
|
31044
|
+
var indianapolis_default = {
|
|
31045
|
+
slug: "indianapolis",
|
|
31046
|
+
city: "Indianapolis",
|
|
31047
|
+
state: "Indiana",
|
|
31048
|
+
stateAbbrev: "IN",
|
|
31049
|
+
countyName: "Marion County",
|
|
31050
|
+
countySlug: "marion-county",
|
|
31051
|
+
lastVerified: "2026-08-24",
|
|
31052
|
+
kind: "cases",
|
|
31053
|
+
cases: {
|
|
31054
|
+
type: "arcgis",
|
|
31055
|
+
url: "https://gis.indy.gov/server/rest/services/OpenData/OpenData_PlanningZoning/MapServer/8",
|
|
31056
|
+
orderField: "DECISION_DATE",
|
|
31057
|
+
fields: {
|
|
31058
|
+
caseNumber: "CASENO",
|
|
31059
|
+
address: "STNAME",
|
|
31060
|
+
addressParts: [
|
|
31061
|
+
"STNUM",
|
|
31062
|
+
"STDIR",
|
|
31063
|
+
"STNAME"
|
|
31064
|
+
],
|
|
31065
|
+
status: "STATUS",
|
|
31066
|
+
statusDate: "DECISION_DATE",
|
|
31067
|
+
ownerName: "PETITNER",
|
|
31068
|
+
district: "COUNCIL"
|
|
31069
|
+
},
|
|
31070
|
+
statusBuckets: {
|
|
31071
|
+
active: [
|
|
31072
|
+
"ACTIVE",
|
|
31073
|
+
"In Process"
|
|
31074
|
+
],
|
|
31075
|
+
approved: [
|
|
31076
|
+
"Approved"
|
|
31077
|
+
],
|
|
31078
|
+
closed: [
|
|
31079
|
+
"Denied",
|
|
31080
|
+
"Withdrawn",
|
|
31081
|
+
"Dismissed"
|
|
31082
|
+
]
|
|
31083
|
+
}
|
|
31084
|
+
},
|
|
31085
|
+
source: {
|
|
31086
|
+
name: "Indianapolis Department of Metropolitan Development",
|
|
31087
|
+
url: "https://www.indy.gov/agency/department-of-metropolitan-development",
|
|
31088
|
+
license: "Public record (City of Indianapolis / Marion County)",
|
|
31089
|
+
portalLabel: "IndyGIS",
|
|
31090
|
+
currentRecordsNote: "Rezoning cases come from the consolidated city-county GIS rezoning layer; the street number, direction, and name live on each case, so address search runs directly. The layer carries zoning-code columns whose meaning is not documentation-confirmed, so this page deliberately shows none rather than risk labeling them wrong.",
|
|
31091
|
+
currentRecordsUrl: "https://data.indy.gov/"
|
|
31092
|
+
}
|
|
31093
|
+
};
|
|
31094
|
+
|
|
31095
|
+
// data/city-zoning/durham.json
|
|
31096
|
+
var durham_default = {
|
|
31097
|
+
slug: "durham",
|
|
31098
|
+
city: "Durham",
|
|
31099
|
+
state: "North Carolina",
|
|
31100
|
+
stateAbbrev: "NC",
|
|
31101
|
+
countyName: "Durham County",
|
|
31102
|
+
countySlug: "durham-county",
|
|
31103
|
+
lastVerified: "2026-08-24",
|
|
31104
|
+
kind: "cases",
|
|
31105
|
+
cases: {
|
|
31106
|
+
type: "arcgis",
|
|
31107
|
+
url: "https://webgis2.durhamnc.gov/server/rest/services/ProjectServices/Planning_ZoningCaseComments/MapServer/0",
|
|
31108
|
+
lookup: "location",
|
|
31109
|
+
geocoder: {
|
|
31110
|
+
provider: "nominatim",
|
|
31111
|
+
context: "Durham, North Carolina"
|
|
31112
|
+
},
|
|
31113
|
+
orderField: "CASENO",
|
|
31114
|
+
where: "CaseType='Rezoning'",
|
|
31115
|
+
fields: {
|
|
31116
|
+
caseNumber: "CASENO",
|
|
31117
|
+
caseName: "ProjectName",
|
|
31118
|
+
caseType: "CaseType",
|
|
31119
|
+
status: "CaseStatus",
|
|
31120
|
+
existingZoning: "CURNTZONING",
|
|
31121
|
+
proposedZoning: "ProposedUDO",
|
|
31122
|
+
statusDate: "PhasePCDate",
|
|
31123
|
+
link: "ProjectDocumentsURL"
|
|
31124
|
+
}
|
|
31125
|
+
},
|
|
31126
|
+
source: {
|
|
31127
|
+
name: "Durham City-County Planning",
|
|
31128
|
+
url: "https://www.durhamnc.gov/338/City-County-Planning",
|
|
31129
|
+
license: "Public record (City of Durham)",
|
|
31130
|
+
portalLabel: "Durham WebGIS",
|
|
31131
|
+
currentRecordsNote: "Rezoning cases come from Durham's zoning-change layer, scoped to CaseType Rezoning (the layer also tracks annexations), with the current and proposed UDO zoning as clean columns and hearings scheduled this month at verification. Published on parcel shapes, so the tool locates your address and asks what intersects it.",
|
|
31132
|
+
currentRecordsUrl: "https://webgis2.durhamnc.gov/"
|
|
31133
|
+
}
|
|
31134
|
+
};
|
|
31135
|
+
|
|
31136
|
+
// data/city-zoning/washington-dc.json
|
|
31137
|
+
var washington_dc_default2 = {
|
|
31138
|
+
slug: "washington-dc",
|
|
31139
|
+
city: "Washington",
|
|
31140
|
+
state: "District of Columbia",
|
|
31141
|
+
stateAbbrev: "DC",
|
|
31142
|
+
countyName: "District of Columbia",
|
|
31143
|
+
countySlug: "district-of-columbia",
|
|
31144
|
+
lastVerified: "2026-08-24",
|
|
31145
|
+
kind: "cases",
|
|
31146
|
+
cases: {
|
|
31147
|
+
type: "arcgis",
|
|
31148
|
+
url: "https://maps2.dcgis.dc.gov/dcgis/rest/services/DCOZ/Zone_Mapservice/MapServer/53",
|
|
31149
|
+
orderField: "dateFiled",
|
|
31150
|
+
where: "Case_Type='ZC'",
|
|
31151
|
+
fields: {
|
|
31152
|
+
caseNumber: "Case_ID",
|
|
31153
|
+
caseName: "Case_Name",
|
|
31154
|
+
address: "Premise_Address",
|
|
31155
|
+
caseType: "Case_Type",
|
|
31156
|
+
status: "Action_Taken",
|
|
31157
|
+
appliedDate: "dateFiled",
|
|
31158
|
+
statusDate: "Decision_Date",
|
|
31159
|
+
link: "URL"
|
|
31160
|
+
},
|
|
31161
|
+
statusBuckets: {
|
|
31162
|
+
active: [
|
|
31163
|
+
"Pending"
|
|
31164
|
+
],
|
|
31165
|
+
approved: [
|
|
31166
|
+
"Approved"
|
|
31167
|
+
]
|
|
31168
|
+
}
|
|
31169
|
+
},
|
|
31170
|
+
source: {
|
|
31171
|
+
name: "DC Office of Zoning",
|
|
31172
|
+
url: "https://dcoz.dc.gov/",
|
|
31173
|
+
license: "Public record (District of Columbia)",
|
|
31174
|
+
portalLabel: "DC GIS (DCOZ)",
|
|
31175
|
+
currentRecordsNote: "Zoning Commission cases come from the DC Office of Zoning case table, scoped to the ZC track (the BZA track is variances and exceptions, a different process). The ZC docket mixes map amendments with PUDs and time extensions; the district publishes no finer public sub-filter. Existing zoning appears only inside each case's prose description.",
|
|
31176
|
+
currentRecordsUrl: "https://app.dcoz.dc.gov/"
|
|
31177
|
+
}
|
|
31178
|
+
};
|
|
31179
|
+
|
|
31180
|
+
// data/city-zoning/nyc.json
|
|
31181
|
+
var nyc_default2 = {
|
|
31182
|
+
slug: "nyc",
|
|
31183
|
+
city: "New York",
|
|
31184
|
+
state: "New York",
|
|
31185
|
+
stateAbbrev: "NY",
|
|
31186
|
+
countyName: "New York County",
|
|
31187
|
+
countySlug: "new-york-county",
|
|
31188
|
+
lastVerified: "2026-08-24",
|
|
31189
|
+
kind: "cases",
|
|
31190
|
+
cases: {
|
|
31191
|
+
type: "socrata",
|
|
31192
|
+
url: "https://data.cityofnewyork.us/resource/hgx4-8ukb.json",
|
|
31193
|
+
lookup: "parcel",
|
|
31194
|
+
resolver: {
|
|
31195
|
+
provider: "nyc-geosearch"
|
|
31196
|
+
},
|
|
31197
|
+
crosswalk: {
|
|
31198
|
+
url: "https://data.cityofnewyork.us/resource/2iga-a6mk.json",
|
|
31199
|
+
parcelField: "bbl",
|
|
31200
|
+
projectField: "project_id"
|
|
31201
|
+
},
|
|
31202
|
+
joinField: "project_id",
|
|
31203
|
+
orderField: "app_filed_date",
|
|
31204
|
+
where: "actions like '%ZM%'",
|
|
31205
|
+
caseLabel: "zoning applications (ULURP)",
|
|
31206
|
+
fields: {
|
|
31207
|
+
caseNumber: "project_id",
|
|
31208
|
+
caseName: "project_name",
|
|
31209
|
+
caseType: "actions",
|
|
31210
|
+
status: "public_status",
|
|
31211
|
+
appliedDate: "app_filed_date",
|
|
31212
|
+
district: "community_district"
|
|
31213
|
+
},
|
|
31214
|
+
statusBuckets: {
|
|
31215
|
+
active: [
|
|
31216
|
+
"Filed",
|
|
31217
|
+
"In Public Review",
|
|
31218
|
+
"Noticed"
|
|
31219
|
+
],
|
|
31220
|
+
closed: [
|
|
31221
|
+
"Completed"
|
|
31222
|
+
]
|
|
31223
|
+
}
|
|
31224
|
+
},
|
|
31225
|
+
source: {
|
|
31226
|
+
name: "NYC Department of City Planning",
|
|
31227
|
+
url: "https://www.nyc.gov/site/planning/index.page",
|
|
31228
|
+
license: "Public record (City of New York)",
|
|
31229
|
+
portalLabel: "NYC Open Data (ZAP)",
|
|
31230
|
+
currentRecordsNote: "Cases come from the Zoning Application Portal datasets on NYC Open Data, scoped to applications whose ULURP actions include a Zoning Map Amendment (ZM). The docket is keyed by parcel (BBL) rather than address, so the tool resolves your address through NYC Planning's own GeoSearch service and joins the crosswalk. Existing and proposed zoning appear inside each project brief rather than as columns. A 'Completed' status means the review finished; it does not by itself say approved or denied.",
|
|
31231
|
+
currentRecordsUrl: "https://zap.planning.nyc.gov/"
|
|
31232
|
+
}
|
|
31233
|
+
};
|
|
31234
|
+
|
|
31235
|
+
// data/city-zoning/los-angeles.json
|
|
31236
|
+
var los_angeles_default = {
|
|
31237
|
+
slug: "los-angeles",
|
|
31238
|
+
city: "Los Angeles",
|
|
31239
|
+
state: "California",
|
|
31240
|
+
stateAbbrev: "CA",
|
|
31241
|
+
countyName: "Los Angeles County",
|
|
31242
|
+
countySlug: "los-angeles-county",
|
|
31243
|
+
lastVerified: "2026-08-24",
|
|
31244
|
+
kind: "cases",
|
|
31245
|
+
cases: {
|
|
31246
|
+
type: "arcgis",
|
|
31247
|
+
url: "https://services1.arcgis.com/tzwalEyxl2rpamKs/arcgis/rest/services/New_PCTS_Case_Filings/FeatureServer/0",
|
|
31248
|
+
orderField: "USER_ReportDate",
|
|
31249
|
+
caseLabel: "new planning-case filings",
|
|
31250
|
+
fields: {
|
|
31251
|
+
caseNumber: "USER_CaseNumber",
|
|
31252
|
+
caseName: "USER_ProjectDescription",
|
|
31253
|
+
address: "USER_Address",
|
|
31254
|
+
caseType: "USER_RequestType",
|
|
31255
|
+
appliedDate: "USER_AppDate",
|
|
31256
|
+
district: "USER_CouncilDist"
|
|
31257
|
+
}
|
|
31258
|
+
},
|
|
31259
|
+
source: {
|
|
31260
|
+
name: "Los Angeles City Planning",
|
|
31261
|
+
url: "https://planning.lacity.gov/",
|
|
31262
|
+
license: "Public record (City of Los Angeles)",
|
|
31263
|
+
portalLabel: "LA City Planning GIS (PCTS)",
|
|
31264
|
+
currentRecordsNote: "Cases come from LA City Planning's rolling PCTS new-filings report, refreshed roughly every two weeks. It is a FILINGS feed: every entitlement type the department accepts, with no decision or status tracking and no zoning columns - the layer's own 'Status' field is geocoder metadata, not case status, and is deliberately not shown.",
|
|
31265
|
+
currentRecordsUrl: "https://planning.lacity.gov/development-services/case-search"
|
|
31266
|
+
}
|
|
31267
|
+
};
|
|
31268
|
+
|
|
31269
|
+
// data/city-zoning/fort-worth.json
|
|
31270
|
+
var fort_worth_default = {
|
|
31271
|
+
slug: "fort-worth",
|
|
31272
|
+
city: "Fort Worth",
|
|
31273
|
+
state: "Texas",
|
|
31274
|
+
stateAbbrev: "TX",
|
|
31275
|
+
countyName: "Tarrant County",
|
|
31276
|
+
countySlug: "tarrant-county",
|
|
31277
|
+
lastVerified: "2026-08-24",
|
|
31278
|
+
kind: "cases",
|
|
31279
|
+
cases: {
|
|
31280
|
+
type: "arcgis",
|
|
31281
|
+
url: "https://testmapit.fortworthtexas.gov/ags/rest/services/Planning_Development/Upcoming_Board_Commission/MapServer/0",
|
|
31282
|
+
orderField: "ZC_DATE",
|
|
31283
|
+
fields: {
|
|
31284
|
+
caseNumber: "CASE_NMBR",
|
|
31285
|
+
address: "ADDRESS",
|
|
31286
|
+
status: "ACTION_",
|
|
31287
|
+
existingZoning: "ZONING_FRO",
|
|
31288
|
+
proposedZoning: "ZONING_TO",
|
|
31289
|
+
appliedDate: "ZC_DATE",
|
|
31290
|
+
statusDate: "DATE_APPRO",
|
|
31291
|
+
ownerName: "APPLT_NAME"
|
|
31292
|
+
},
|
|
31293
|
+
statusBuckets: {
|
|
31294
|
+
approved: [
|
|
31295
|
+
"Approved",
|
|
31296
|
+
"Approved as amended"
|
|
31297
|
+
],
|
|
31298
|
+
closed: [
|
|
31299
|
+
"Denied",
|
|
31300
|
+
"Denied w/o prej",
|
|
31301
|
+
"Withdrawn"
|
|
31302
|
+
]
|
|
31303
|
+
}
|
|
31304
|
+
},
|
|
31305
|
+
source: {
|
|
31306
|
+
name: "Fort Worth Development Services",
|
|
31307
|
+
url: "https://www.fortworthtexas.gov/departments/development-services",
|
|
31308
|
+
license: "Public record (City of Fort Worth)",
|
|
31309
|
+
portalLabel: "Fort Worth MapIt",
|
|
31310
|
+
currentRecordsNote: "Zoning cases come from the current-year Zoning Cases layer (layer 0 rotates each January; the service keeps per-year archives back to 2004 - re-point the config at the new year's layer each January). A case with no recorded action is still pending. The 'testmapit' hostname is, verifiably, ahead of the production-named mirror.",
|
|
31311
|
+
currentRecordsUrl: "https://mapit.fortworthtexas.gov/"
|
|
31312
|
+
}
|
|
31313
|
+
};
|
|
31314
|
+
|
|
31315
|
+
// data/city-zoning/raleigh.json
|
|
31316
|
+
var raleigh_default = {
|
|
31317
|
+
slug: "raleigh",
|
|
31318
|
+
city: "Raleigh",
|
|
31319
|
+
state: "North Carolina",
|
|
31320
|
+
stateAbbrev: "NC",
|
|
31321
|
+
countyName: "Wake County",
|
|
31322
|
+
countySlug: "wake-county",
|
|
31323
|
+
lastVerified: "2026-08-24",
|
|
31324
|
+
kind: "cases",
|
|
31325
|
+
cases: {
|
|
31326
|
+
type: "arcgis",
|
|
31327
|
+
url: "https://services.arcgis.com/v400IkDOw1ad7Yad/arcgis/rest/services/Rezoning_Case_Boundaries_View/FeatureServer/0",
|
|
31328
|
+
orderField: "StatusDate",
|
|
31329
|
+
fields: {
|
|
31330
|
+
caseNumber: "ZONE_CASE",
|
|
31331
|
+
address: "Location",
|
|
31332
|
+
caseType: "CASE_TYPE",
|
|
31333
|
+
status: "STATUS",
|
|
31334
|
+
existingZoning: "PrevZoning",
|
|
31335
|
+
proposedZoning: "ZON_REQ",
|
|
31336
|
+
statusDate: "StatusDate",
|
|
31337
|
+
link: "EG_Link"
|
|
31338
|
+
},
|
|
31339
|
+
statusBuckets: {
|
|
31340
|
+
active: [
|
|
31341
|
+
"In Process"
|
|
31342
|
+
],
|
|
31343
|
+
approved: [
|
|
31344
|
+
"Approved"
|
|
31345
|
+
],
|
|
31346
|
+
closed: [
|
|
31347
|
+
"Denied",
|
|
31348
|
+
"Withdrawn"
|
|
31349
|
+
]
|
|
31350
|
+
}
|
|
31351
|
+
},
|
|
31352
|
+
source: {
|
|
31353
|
+
name: "Raleigh Planning and Development",
|
|
31354
|
+
url: "https://raleighnc.gov/planning",
|
|
31355
|
+
license: "Public record (City of Raleigh)",
|
|
31356
|
+
portalLabel: "Raleigh Open Data (ArcGIS)",
|
|
31357
|
+
currentRecordsNote: "Rezoning requests come from Raleigh's case-boundaries layer with clean previous/requested zoning columns and live 2026 cases (the layer's cached time metadata claims 2022; the data disproves it). Multi-parcel cases list every address, semicolon-separated.",
|
|
31358
|
+
currentRecordsUrl: "https://data.raleighnc.gov/"
|
|
31359
|
+
}
|
|
31360
|
+
};
|
|
31361
|
+
|
|
31362
|
+
// data/city-zoning/boise.json
|
|
31363
|
+
var boise_default = {
|
|
31364
|
+
slug: "boise",
|
|
31365
|
+
city: "Boise",
|
|
31366
|
+
state: "Idaho",
|
|
31367
|
+
stateAbbrev: "ID",
|
|
31368
|
+
countyName: "Ada County",
|
|
31369
|
+
countySlug: "ada-county",
|
|
31370
|
+
lastVerified: "2026-08-24",
|
|
31371
|
+
kind: "cases",
|
|
31372
|
+
cases: {
|
|
31373
|
+
type: "arcgis",
|
|
31374
|
+
url: "https://services1.arcgis.com/WHM6qC35aMtyAAlN/arcgis/rest/services/Development_Tracker_Open_Data/FeatureServer/0",
|
|
31375
|
+
orderField: "RecordID",
|
|
31376
|
+
where: "RecordType='Annexation-Rezone'",
|
|
31377
|
+
fields: {
|
|
31378
|
+
caseNumber: "RecordID",
|
|
31379
|
+
address: "PropertyAddress",
|
|
31380
|
+
caseType: "RecordType",
|
|
31381
|
+
status: "Status",
|
|
31382
|
+
district: "HearingBody",
|
|
31383
|
+
link: "Website"
|
|
31384
|
+
},
|
|
31385
|
+
statusBuckets: {
|
|
31386
|
+
active: [
|
|
31387
|
+
"In Review",
|
|
31388
|
+
"Awaiting Applications"
|
|
31389
|
+
],
|
|
31390
|
+
closed: [
|
|
31391
|
+
"Returned to Applicant"
|
|
31392
|
+
]
|
|
31393
|
+
}
|
|
31394
|
+
},
|
|
31395
|
+
source: {
|
|
31396
|
+
name: "Boise Planning and Development Services",
|
|
31397
|
+
url: "https://www.cityofboise.org/departments/planning-and-development-services/",
|
|
31398
|
+
license: "Public record (City of Boise)",
|
|
31399
|
+
portalLabel: "Boise Development Tracker",
|
|
31400
|
+
currentRecordsNote: "Annexation and rezone cases come from Boise's unified Development Tracker, scoped here to the Annexation-Rezone record type (the tracker covers a dozen application types). No zoning columns are published; hearing bodies and the city's own case page are linked instead.",
|
|
31401
|
+
currentRecordsUrl: "https://www.cityofboise.org/programs/development-tracker/"
|
|
31402
|
+
}
|
|
31403
|
+
};
|
|
31404
|
+
|
|
31405
|
+
// src/cities-data.ts
|
|
31406
|
+
var cityPropertyIndex = city_property_default;
|
|
31407
|
+
var cityZoningIndex = city_zoning_default;
|
|
31408
|
+
var PROPERTY_CITIES = {
|
|
31409
|
+
dallas: dallas_default,
|
|
31410
|
+
chicago: chicago_default,
|
|
31411
|
+
nashville: nashville_default,
|
|
31412
|
+
austin: austin_default,
|
|
31413
|
+
seattle: seattle_default,
|
|
31414
|
+
nyc: nyc_default,
|
|
31415
|
+
"san-francisco": san_francisco_default,
|
|
31416
|
+
detroit: detroit_default,
|
|
31417
|
+
"las-vegas": las_vegas_default,
|
|
31418
|
+
"kansas-city": kansas_city_default,
|
|
31419
|
+
columbus: columbus_default,
|
|
31420
|
+
boston: boston_default,
|
|
31421
|
+
"san-antonio": san_antonio_default,
|
|
31422
|
+
milwaukee: milwaukee_default,
|
|
31423
|
+
charlotte: charlotte_default,
|
|
31424
|
+
denver: denver_default,
|
|
31425
|
+
"washington-dc": washington_dc_default,
|
|
31426
|
+
philadelphia: philadelphia_default,
|
|
31427
|
+
atlanta: atlanta_default,
|
|
31428
|
+
phoenix: phoenix_default
|
|
31429
|
+
};
|
|
31430
|
+
var ZONING_CITIES = {
|
|
31431
|
+
austin: austin_default2,
|
|
31432
|
+
dallas: dallas_default2,
|
|
31433
|
+
nashville: nashville_default2,
|
|
31434
|
+
denver: denver_default2,
|
|
31435
|
+
charlotte: charlotte_default2,
|
|
31436
|
+
boston: boston_default2,
|
|
31437
|
+
atlanta: atlanta_default2,
|
|
31438
|
+
"new-orleans": new_orleans_default,
|
|
31439
|
+
tampa: tampa_default,
|
|
31440
|
+
indianapolis: indianapolis_default,
|
|
31441
|
+
durham: durham_default,
|
|
31442
|
+
"washington-dc": washington_dc_default2,
|
|
31443
|
+
nyc: nyc_default2,
|
|
31444
|
+
"los-angeles": los_angeles_default,
|
|
31445
|
+
"fort-worth": fort_worth_default,
|
|
31446
|
+
raleigh: raleigh_default,
|
|
31447
|
+
boise: boise_default
|
|
31448
|
+
};
|
|
31449
|
+
|
|
31450
|
+
// src/cities.ts
|
|
31451
|
+
var CITY_RECORD_LIMIT = 30;
|
|
31452
|
+
function esc(s) {
|
|
31453
|
+
return s.replace(/'/g, "''");
|
|
31454
|
+
}
|
|
31455
|
+
function sqlId(id) {
|
|
31456
|
+
return `"${id.replace(/"/g, '""')}"`;
|
|
31457
|
+
}
|
|
31458
|
+
var DIRECTIONALS = /* @__PURE__ */ new Set([
|
|
31459
|
+
"N",
|
|
31460
|
+
"S",
|
|
31461
|
+
"E",
|
|
31462
|
+
"W",
|
|
31463
|
+
"NE",
|
|
31464
|
+
"NW",
|
|
31465
|
+
"SE",
|
|
31466
|
+
"SW",
|
|
31467
|
+
"NORTH",
|
|
31468
|
+
"SOUTH",
|
|
31469
|
+
"EAST",
|
|
31470
|
+
"WEST",
|
|
31471
|
+
"NORTHEAST",
|
|
31472
|
+
"NORTHWEST",
|
|
31473
|
+
"SOUTHEAST",
|
|
31474
|
+
"SOUTHWEST"
|
|
31475
|
+
]);
|
|
31476
|
+
var STREET_SUFFIXES = /* @__PURE__ */ new Set([
|
|
31477
|
+
"ST",
|
|
31478
|
+
"STREET",
|
|
31479
|
+
"AVE",
|
|
31480
|
+
"AV",
|
|
31481
|
+
"AVENUE",
|
|
31482
|
+
"BLVD",
|
|
31483
|
+
"BOULEVARD",
|
|
31484
|
+
"RD",
|
|
31485
|
+
"ROAD",
|
|
31486
|
+
"DR",
|
|
31487
|
+
"DRIVE",
|
|
31488
|
+
"LN",
|
|
31489
|
+
"LANE",
|
|
31490
|
+
"CT",
|
|
31491
|
+
"COURT",
|
|
31492
|
+
"PL",
|
|
31493
|
+
"PLACE",
|
|
31494
|
+
"WAY",
|
|
31495
|
+
"PKWY",
|
|
31496
|
+
"PARKWAY",
|
|
31497
|
+
"HWY",
|
|
31498
|
+
"HIGHWAY",
|
|
31499
|
+
"CIR",
|
|
31500
|
+
"CIRCLE",
|
|
31501
|
+
"TER",
|
|
31502
|
+
"TERRACE",
|
|
31503
|
+
"TRL",
|
|
31504
|
+
"TRAIL",
|
|
31505
|
+
"PK",
|
|
31506
|
+
"PIKE",
|
|
31507
|
+
"SQ",
|
|
31508
|
+
"SQUARE",
|
|
31509
|
+
"PLZ",
|
|
31510
|
+
"PLAZA",
|
|
31511
|
+
"ALY",
|
|
31512
|
+
"ALLEY",
|
|
31513
|
+
"RW",
|
|
31514
|
+
"ROW",
|
|
31515
|
+
"LOOP",
|
|
31516
|
+
"RUN",
|
|
31517
|
+
"PATH",
|
|
31518
|
+
"WALK",
|
|
31519
|
+
"CV",
|
|
31520
|
+
"COVE",
|
|
31521
|
+
"EXPY",
|
|
31522
|
+
"EXPRESSWAY",
|
|
31523
|
+
"FWY",
|
|
31524
|
+
"FREEWAY"
|
|
31525
|
+
]);
|
|
31526
|
+
function splitStreet(street) {
|
|
31527
|
+
const m = /^\s*(\d+)(?:-?[A-Za-z0-9]+)?\s+(.+)$/.exec(street);
|
|
31528
|
+
if (!m) return null;
|
|
31529
|
+
let tokens = m[2].trim().split(/\s+/).filter(Boolean);
|
|
31530
|
+
if (tokens.length > 1 && DIRECTIONALS.has(tokens[0].toUpperCase())) tokens = tokens.slice(1);
|
|
31531
|
+
if (tokens.length > 1 && STREET_SUFFIXES.has(tokens[tokens.length - 1].replace(/\.$/, "").toUpperCase())) {
|
|
31532
|
+
tokens = tokens.slice(0, -1);
|
|
31533
|
+
}
|
|
31534
|
+
const name = tokens.join(" ").trim();
|
|
31535
|
+
if (!name) return null;
|
|
31536
|
+
return { number: m[1], name };
|
|
31537
|
+
}
|
|
31538
|
+
function splitFor(ds, street) {
|
|
31539
|
+
if (!ds.fields.streetNumber) return null;
|
|
31540
|
+
return splitStreet(street);
|
|
31541
|
+
}
|
|
31542
|
+
function splitAddressStreetName(parts, nameColumn, numberColumn, street) {
|
|
31543
|
+
if (!parts || !nameColumn || numberColumn) return street;
|
|
31544
|
+
const at = parts.indexOf(nameColumn);
|
|
31545
|
+
if (at < 0 || parts.length < 2) return street;
|
|
31546
|
+
const before = at;
|
|
31547
|
+
const after = parts.length - 1 - at;
|
|
31548
|
+
let tokens = street.trim().split(/\s+/).filter(Boolean);
|
|
31549
|
+
if (before >= 1 && tokens.length > 1 && /^\d+(?:-?[A-Za-z0-9]+)?$/.test(tokens[0])) tokens = tokens.slice(1);
|
|
31550
|
+
if (before >= 2 && tokens.length > 1 && DIRECTIONALS.has(tokens[0].toUpperCase())) tokens = tokens.slice(1);
|
|
31551
|
+
if (after >= 1 && tokens.length > 1 && STREET_SUFFIXES.has(tokens[tokens.length - 1].replace(/\.$/, "").toUpperCase())) {
|
|
31552
|
+
tokens = tokens.slice(0, -1);
|
|
31553
|
+
}
|
|
31554
|
+
const name = tokens.join(" ");
|
|
31555
|
+
return name || street;
|
|
31556
|
+
}
|
|
31557
|
+
function unmappedNumberColumn(parts, nameColumn, numberColumn) {
|
|
31558
|
+
if (!parts || !nameColumn || numberColumn) return void 0;
|
|
31559
|
+
return parts.indexOf(nameColumn) >= 1 ? parts[0] : void 0;
|
|
31560
|
+
}
|
|
31561
|
+
function numberLiteral(ds, n) {
|
|
31562
|
+
return ds.streetNumberType === "number" ? n : `'${n}'`;
|
|
31563
|
+
}
|
|
31564
|
+
function propertyQueryUrl(ds, street) {
|
|
31565
|
+
const address = street;
|
|
31566
|
+
const split = address ? splitFor(ds, address) : null;
|
|
31567
|
+
if (ds.type === "socrata") {
|
|
31568
|
+
const parts = [];
|
|
31569
|
+
const clauses = [];
|
|
31570
|
+
if (split) {
|
|
31571
|
+
clauses.push(
|
|
31572
|
+
`upper(${ds.fields.address}) like upper('%${esc(split.name)}%') AND ${ds.fields.streetNumber} = ${numberLiteral(ds, split.number)}`
|
|
31573
|
+
);
|
|
31574
|
+
} else if (address) {
|
|
31575
|
+
clauses.push(`upper(${ds.fields.address}) like upper('%${esc(address)}%')`);
|
|
31576
|
+
}
|
|
31577
|
+
if (ds.where) clauses.push(`(${ds.where})`);
|
|
31578
|
+
if (clauses.length) parts.push(`$where=${encodeURIComponent(clauses.join(" AND "))}`);
|
|
31579
|
+
if (ds.orderField) parts.push(`$order=${encodeURIComponent(ds.orderField + " DESC")}`);
|
|
31580
|
+
parts.push(`$limit=${CITY_RECORD_LIMIT}`);
|
|
31581
|
+
return `${ds.url}?${parts.join("&")}`;
|
|
31582
|
+
}
|
|
31583
|
+
if (ds.type === "ckan") {
|
|
31584
|
+
const clauses = [];
|
|
31585
|
+
if (split) {
|
|
31586
|
+
clauses.push(
|
|
31587
|
+
`${sqlId(ds.fields.address)} ILIKE '%${esc(split.name)}%' AND ${sqlId(ds.fields.streetNumber)} = ${numberLiteral(ds, split.number)}`
|
|
31588
|
+
);
|
|
31589
|
+
} else if (address) {
|
|
31590
|
+
clauses.push(`${sqlId(ds.fields.address)} ILIKE '%${esc(address)}%'`);
|
|
31591
|
+
}
|
|
31592
|
+
if (ds.where) clauses.push(`(${ds.where})`);
|
|
31593
|
+
const whereSql = clauses.length ? clauses.join(" AND ") : "1=1";
|
|
31594
|
+
let sql = `SELECT * FROM "${ds.resourceId}" WHERE ${whereSql}`;
|
|
31595
|
+
if (ds.orderField) sql += ` ORDER BY ${sqlId(ds.orderField)} DESC`;
|
|
31596
|
+
sql += ` LIMIT ${CITY_RECORD_LIMIT}`;
|
|
31597
|
+
return `${ds.url.replace(/\/+$/, "")}/api/3/action/datastore_search_sql?sql=${encodeURIComponent(sql)}`;
|
|
31598
|
+
}
|
|
31599
|
+
if (ds.type === "carto") {
|
|
31600
|
+
const clauses = [];
|
|
31601
|
+
if (split) {
|
|
31602
|
+
clauses.push(
|
|
31603
|
+
`${sqlId(ds.fields.address)} ILIKE '%${esc(split.name)}%' AND ${sqlId(ds.fields.streetNumber)} = ${numberLiteral(ds, split.number)}`
|
|
31604
|
+
);
|
|
31605
|
+
} else if (address) {
|
|
31606
|
+
clauses.push(`${sqlId(ds.fields.address)} ILIKE '%${esc(address)}%'`);
|
|
31607
|
+
}
|
|
31608
|
+
if (ds.where) clauses.push(`(${ds.where})`);
|
|
31609
|
+
const whereSql = clauses.length ? clauses.join(" AND ") : "1=1";
|
|
31610
|
+
let sql = `SELECT * FROM ${sqlId(ds.resourceId ?? "")} WHERE ${whereSql}`;
|
|
31611
|
+
if (ds.orderField) sql += ` ORDER BY ${sqlId(ds.orderField)} DESC NULLS LAST`;
|
|
31612
|
+
sql += ` LIMIT ${CITY_RECORD_LIMIT}`;
|
|
31613
|
+
return `${ds.url.replace(/\/+$/, "")}/api/v2/sql?q=${encodeURIComponent(sql)}`;
|
|
31614
|
+
}
|
|
31615
|
+
const arcClauses = [];
|
|
31616
|
+
if (split) {
|
|
31617
|
+
arcClauses.push(
|
|
31618
|
+
`UPPER(${ds.fields.address}) LIKE UPPER('%${esc(split.name)}%') AND ${ds.fields.streetNumber} = ${numberLiteral(ds, split.number)}`
|
|
31619
|
+
);
|
|
31620
|
+
} else if (address) {
|
|
31621
|
+
arcClauses.push(`UPPER(${ds.fields.address}) LIKE UPPER('%${esc(address)}%')`);
|
|
31622
|
+
}
|
|
31623
|
+
if (ds.where) arcClauses.push(`(${ds.where})`);
|
|
31624
|
+
const where = arcClauses.length ? arcClauses.join(" AND ") : "1=1";
|
|
31625
|
+
const qp = [
|
|
31626
|
+
`where=${encodeURIComponent(where)}`,
|
|
31627
|
+
"outFields=*",
|
|
31628
|
+
"returnGeometry=false",
|
|
31629
|
+
`resultRecordCount=${CITY_RECORD_LIMIT}`,
|
|
31630
|
+
"f=json"
|
|
31631
|
+
];
|
|
31632
|
+
if (ds.orderField) qp.push(`orderByFields=${encodeURIComponent(ds.orderField + " DESC")}`);
|
|
31633
|
+
return `${ds.url.replace(/\/+$/, "")}/query?${qp.join("&")}`;
|
|
31634
|
+
}
|
|
31635
|
+
function statusClause(src, statuses, quoteUpper) {
|
|
31636
|
+
if (!statuses.length) return null;
|
|
31637
|
+
const list = statuses.map((s) => `'${esc(s)}'`).join(",");
|
|
31638
|
+
return `${src.fields.status} ${quoteUpper ? "IN" : "in"} (${list})`;
|
|
31639
|
+
}
|
|
31640
|
+
function arcgisBaseParams(where) {
|
|
31641
|
+
return [
|
|
31642
|
+
`where=${encodeURIComponent(where)}`,
|
|
31643
|
+
"outFields=*",
|
|
31644
|
+
"returnGeometry=false",
|
|
31645
|
+
`resultRecordCount=${CITY_RECORD_LIMIT}`,
|
|
31646
|
+
"f=json"
|
|
31647
|
+
];
|
|
31648
|
+
}
|
|
31649
|
+
function casesQueryUrl(src, street, statuses = []) {
|
|
31650
|
+
const lookup = src.lookup ?? "address";
|
|
31651
|
+
if (lookup !== "address" && street) return null;
|
|
31652
|
+
if (src.type === "socrata") {
|
|
31653
|
+
const clauses2 = [];
|
|
31654
|
+
if (street) clauses2.push(`upper(${src.fields.address}) like upper('%${esc(street)}%')`);
|
|
31655
|
+
const st2 = statusClause(src, statuses, false);
|
|
31656
|
+
if (st2) clauses2.push(st2);
|
|
31657
|
+
if (src.where) clauses2.push(`(${src.where})`);
|
|
31658
|
+
const parts2 = [];
|
|
31659
|
+
if (clauses2.length) parts2.push(`$where=${encodeURIComponent(clauses2.join(" AND "))}`);
|
|
31660
|
+
if (src.orderField) parts2.push(`$order=${encodeURIComponent(src.orderField + " DESC")}`);
|
|
31661
|
+
parts2.push(`$limit=${CITY_RECORD_LIMIT}`);
|
|
31662
|
+
return `${src.url}?${parts2.join("&")}`;
|
|
31663
|
+
}
|
|
31664
|
+
const clauses = [];
|
|
31665
|
+
if (street) clauses.push(`UPPER(${src.fields.address}) LIKE UPPER('%${esc(street)}%')`);
|
|
31666
|
+
const st = statusClause(src, statuses, true);
|
|
31667
|
+
if (st) clauses.push(st);
|
|
31668
|
+
if (src.where) clauses.push(`(${src.where})`);
|
|
31669
|
+
const where = clauses.length ? clauses.join(" AND ") : "1=1";
|
|
31670
|
+
const parts = arcgisBaseParams(where);
|
|
31671
|
+
if (src.orderField) parts.push(`orderByFields=${encodeURIComponent(src.orderField + " DESC")}`);
|
|
31672
|
+
return `${src.url.replace(/\/+$/, "")}/query?${parts.join("&")}`;
|
|
31673
|
+
}
|
|
31674
|
+
var POINT_PLACEHOLDER = "{LON},{LAT}";
|
|
31675
|
+
function casesLocationTemplate(src, statuses = []) {
|
|
31676
|
+
if ((src.lookup ?? "address") !== "location") return null;
|
|
31677
|
+
const clauses = [];
|
|
31678
|
+
const st = statusClause(src, statuses, true);
|
|
31679
|
+
if (st) clauses.push(st);
|
|
31680
|
+
if (src.where) clauses.push(`(${src.where})`);
|
|
31681
|
+
const where = clauses.length ? clauses.join(" AND ") : "1=1";
|
|
31682
|
+
const parts = arcgisBaseParams(where);
|
|
31683
|
+
parts.push(
|
|
31684
|
+
`geometry=${POINT_PLACEHOLDER}`,
|
|
31685
|
+
"geometryType=esriGeometryPoint",
|
|
31686
|
+
"inSR=4326",
|
|
31687
|
+
"spatialRel=esriSpatialRelIntersects"
|
|
31688
|
+
);
|
|
31689
|
+
if (src.orderField) parts.push(`orderByFields=${encodeURIComponent(src.orderField + " DESC")}`);
|
|
31690
|
+
return `${src.url.replace(/\/+$/, "")}/query?${parts.join("&")}`;
|
|
31691
|
+
}
|
|
31692
|
+
function currentZoningTemplate(cz) {
|
|
31693
|
+
const f = cz.fields;
|
|
31694
|
+
const outFields = [f.zoneDist, f.longZoneDist, f.pdNum, f.caseNumber, f.effectiveDate, f.districtUse].filter(Boolean).join(",");
|
|
31695
|
+
const base = cz.url.replace(/\/+$/, "");
|
|
31696
|
+
const params = [
|
|
31697
|
+
`geometry=${POINT_PLACEHOLDER}`,
|
|
31698
|
+
"geometryType=esriGeometryPoint",
|
|
31699
|
+
"inSR=4326",
|
|
31700
|
+
"spatialRel=esriSpatialRelIntersects",
|
|
31701
|
+
`outFields=${encodeURIComponent(outFields)}`,
|
|
31702
|
+
"returnGeometry=false",
|
|
31703
|
+
"f=json"
|
|
31704
|
+
];
|
|
31705
|
+
return `${base}/query?${params.join("&")}`;
|
|
31706
|
+
}
|
|
31707
|
+
function slugify2(s) {
|
|
31708
|
+
return s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
31709
|
+
}
|
|
31710
|
+
function normalizeName(s) {
|
|
31711
|
+
return s.toLowerCase().replace(/[.']/g, "").replace(/[^a-z0-9]+/g, " ").trim();
|
|
31712
|
+
}
|
|
31713
|
+
function mergeCityIndexes(property, zoning) {
|
|
31714
|
+
const bySlug = /* @__PURE__ */ new Map();
|
|
31715
|
+
for (const p of property) {
|
|
31716
|
+
if (!p.populated) continue;
|
|
31717
|
+
bySlug.set(p.slug, {
|
|
31718
|
+
slug: p.slug,
|
|
31719
|
+
city: p.city,
|
|
31720
|
+
state: p.state,
|
|
31721
|
+
stateAbbrev: p.stateAbbrev,
|
|
31722
|
+
countyName: p.countyName,
|
|
31723
|
+
countySlug: p.countySlug,
|
|
31724
|
+
kinds: [...p.datasets ?? []],
|
|
31725
|
+
names: [p.city]
|
|
31726
|
+
});
|
|
31727
|
+
}
|
|
31728
|
+
for (const z of zoning) {
|
|
31729
|
+
if (!z.populated) continue;
|
|
31730
|
+
const have = bySlug.get(z.slug);
|
|
31731
|
+
if (have) {
|
|
31732
|
+
if (!have.kinds.includes("zoning")) have.kinds.push("zoning");
|
|
31733
|
+
if (!have.names.includes(z.city)) have.names.push(z.city);
|
|
31734
|
+
if (!have.countyName && z.countyName) have.countyName = z.countyName;
|
|
31735
|
+
if (!have.countySlug && z.countySlug) have.countySlug = z.countySlug;
|
|
31736
|
+
continue;
|
|
31737
|
+
}
|
|
31738
|
+
bySlug.set(z.slug, {
|
|
31739
|
+
slug: z.slug,
|
|
31740
|
+
city: z.city,
|
|
31741
|
+
state: z.state,
|
|
31742
|
+
stateAbbrev: z.stateAbbrev,
|
|
31743
|
+
countyName: z.countyName,
|
|
31744
|
+
countySlug: z.countySlug,
|
|
31745
|
+
kinds: ["zoning"],
|
|
31746
|
+
names: [z.city]
|
|
31747
|
+
});
|
|
31748
|
+
}
|
|
31749
|
+
return [...bySlug.values()].sort((a, b) => a.slug.localeCompare(b.slug));
|
|
31750
|
+
}
|
|
31751
|
+
var CITY_ALIASES = {
|
|
31752
|
+
nyc: "nyc",
|
|
31753
|
+
"new york": "nyc",
|
|
31754
|
+
"new york city": "nyc",
|
|
31755
|
+
"city of new york": "nyc",
|
|
31756
|
+
dc: "washington-dc",
|
|
31757
|
+
"washington dc": "washington-dc",
|
|
31758
|
+
"washington d c": "washington-dc",
|
|
31759
|
+
"district of columbia": "washington-dc"
|
|
31760
|
+
};
|
|
31761
|
+
function cityInState(c, state) {
|
|
31762
|
+
const s = normalizeName(state);
|
|
31763
|
+
if (!s) return true;
|
|
31764
|
+
if (/^[a-z]{2}$/.test(s.replace(/ /g, ""))) return c.stateAbbrev.toLowerCase() === s.replace(/ /g, "");
|
|
31765
|
+
return normalizeName(c.state) === s;
|
|
31766
|
+
}
|
|
31767
|
+
function findCityIn(cities, ref, state) {
|
|
31768
|
+
let name = ref.trim();
|
|
31769
|
+
let stateHint = state?.trim() ?? "";
|
|
31770
|
+
const comma = name.indexOf(",");
|
|
31771
|
+
if (comma >= 0) {
|
|
31772
|
+
const tail = name.slice(comma + 1).trim();
|
|
31773
|
+
name = name.slice(0, comma).trim();
|
|
31774
|
+
if (!stateHint && tail) stateHint = tail;
|
|
31775
|
+
}
|
|
31776
|
+
if (!name) return [];
|
|
31777
|
+
const inState = (c) => cityInState(c, stateHint);
|
|
31778
|
+
const asSlug = slugify2(name);
|
|
31779
|
+
const bySlug = cities.filter((c) => c.slug === asSlug && inState(c));
|
|
31780
|
+
if (bySlug.length) return bySlug;
|
|
31781
|
+
const key = normalizeName(name);
|
|
31782
|
+
const byName = cities.filter((c) => c.names.some((n) => normalizeName(n) === key) && inState(c));
|
|
31783
|
+
if (byName.length) return byName;
|
|
31784
|
+
const alias = Object.prototype.hasOwnProperty.call(CITY_ALIASES, key) ? CITY_ALIASES[key] : void 0;
|
|
31785
|
+
if (alias) return cities.filter((c) => c.slug === alias && inState(c));
|
|
31786
|
+
return [];
|
|
31787
|
+
}
|
|
31788
|
+
function citiesForCountyIn(cities, stateSlug, countySlug) {
|
|
31789
|
+
return cities.filter((c) => c.countySlug === countySlug && slugify2(c.state) === stateSlug);
|
|
31790
|
+
}
|
|
31791
|
+
function cityPath(slug, kind) {
|
|
31792
|
+
return kind === "zoning" ? `/tools/zoning-cases/${slug}` : `/tools/property-report/${slug}`;
|
|
31793
|
+
}
|
|
31794
|
+
var SOCRATA_NOTE = " Socrata throttles anonymous callers: for volume, send an X-App-Token header with your own app token.";
|
|
31795
|
+
var WILDCARD_NOTE = "LIKE wildcards in the street stay active, as on the site: '%' matches any run of characters and '_' exactly one.";
|
|
31796
|
+
function propertyNote(ds) {
|
|
31797
|
+
const parts = [];
|
|
31798
|
+
const numberColumn = unmappedNumberColumn(ds.fields.addressParts, ds.fields.address, ds.fields.streetNumber);
|
|
31799
|
+
if (ds.fields.streetNumber) {
|
|
31800
|
+
parts.push(
|
|
31801
|
+
`The street is split: type 'number name' ('1422 N Western Ave') and the number is matched on ${ds.fields.streetNumber} while the name is matched on ${ds.fields.address}; a street name alone falls back to a substring match on ${ds.fields.address}.`
|
|
31802
|
+
);
|
|
31803
|
+
} else if (numberColumn) {
|
|
31804
|
+
parts.push(
|
|
31805
|
+
`Case-insensitive substring match on ${ds.fields.address}, which holds the street name (the house number is in ${numberColumn}): the query matches the street name on ${ds.fields.address} and returns every row on that street; filter by house number in the results.`
|
|
31806
|
+
);
|
|
31807
|
+
} else {
|
|
31808
|
+
parts.push(
|
|
31809
|
+
`Case-insensitive substring match on ${ds.fields.address}: a street name alone ('Commerce') returns the most, and a number plus name matches only rows whose ${ds.fields.address} contains that exact text.`
|
|
31810
|
+
);
|
|
31811
|
+
}
|
|
31812
|
+
parts.push(WILDCARD_NOTE);
|
|
31813
|
+
if (ds.where) parts.push("The where clause is part of the dataset definition: keep it in every query.");
|
|
31814
|
+
if (!ds.orderField) parts.push("The source cannot sort by date: re-sort the rows yourself.");
|
|
31815
|
+
return parts.join(" ") + (ds.type === "socrata" ? SOCRATA_NOTE : "");
|
|
31816
|
+
}
|
|
31817
|
+
function casesNote(src) {
|
|
31818
|
+
const lookup = src.lookup ?? "address";
|
|
31819
|
+
const parts = [];
|
|
31820
|
+
if (lookup === "location") {
|
|
31821
|
+
parts.push(
|
|
31822
|
+
`This docket is published on parcel shapes and has no address column: geocode the address to a WGS84 point, put it in the template as ${POINT_PLACEHOLDER} (longitude first), and the server answers point-in-polygon. With no geometry the template browses newest first.`
|
|
31823
|
+
);
|
|
31824
|
+
} else if (lookup === "parcel") {
|
|
31825
|
+
const xw = src.crosswalk;
|
|
31826
|
+
parts.push(
|
|
31827
|
+
`This docket is keyed by parcel, not address: resolve the address to a BBL with https://geosearch.planninglabs.nyc/v2/search?text=<address>&size=1 (properties.addendum.pad.bbl), read the case ids from the crosswalk ${xw?.url ?? ""} where ${xw?.parcelField ?? "bbl"}='<bbl>' (column ${xw?.projectField ?? "project_id"}), then query the endpoint with ${src.joinField ?? xw?.projectField ?? "project_id"} in ('<id>',...). sample_query is the newest-first browse.`
|
|
31828
|
+
);
|
|
31829
|
+
} else {
|
|
31830
|
+
const numberColumn = unmappedNumberColumn(src.fields.addressParts, src.fields.address, void 0);
|
|
31831
|
+
parts.push(
|
|
31832
|
+
numberColumn ? `Case-insensitive substring match on ${src.fields.address}, which holds the street name (the house number is in ${numberColumn}): the query matches the street name on ${src.fields.address} and returns every row on that street; filter by house number in the results.` : `Case-insensitive substring match on ${src.fields.address}: a street name alone returns the most.`
|
|
31833
|
+
);
|
|
31834
|
+
parts.push(`Filter by status with ${src.fields.status ?? "the status column"} in (...) using the status_buckets values.`);
|
|
31835
|
+
parts.push(WILDCARD_NOTE);
|
|
31836
|
+
}
|
|
31837
|
+
if (src.where) parts.push("The where clause is part of the dataset definition: keep it in every query.");
|
|
31838
|
+
return parts.join(" ") + (src.type === "socrata" ? SOCRATA_NOTE : "");
|
|
31839
|
+
}
|
|
31840
|
+
var CURRENT_ZONING_NOTE = `Not a case log: this is the current base-zoning map. Geocode the address to a WGS84 point, put it in the template as ${POINT_PLACEHOLDER} (longitude first), and the intersecting polygon is the property's zoning district today.`;
|
|
31841
|
+
function templateFromUrl(url, substitute) {
|
|
31842
|
+
const q = url.indexOf("?");
|
|
31843
|
+
const base = q >= 0 ? url.slice(0, q) : url;
|
|
31844
|
+
const params = /* @__PURE__ */ Object.create(null);
|
|
31845
|
+
if (q >= 0) {
|
|
31846
|
+
for (const pair of url.slice(q + 1).split("&")) {
|
|
31847
|
+
const eq = pair.indexOf("=");
|
|
31848
|
+
const k = eq >= 0 ? pair.slice(0, eq) : pair;
|
|
31849
|
+
const v = eq >= 0 ? pair.slice(eq + 1) : "";
|
|
31850
|
+
params[decodeURIComponent(k)] = decodeURIComponent(v);
|
|
31851
|
+
}
|
|
31852
|
+
}
|
|
31853
|
+
return { base, params, substitute };
|
|
31854
|
+
}
|
|
31855
|
+
function fieldRecord(fields) {
|
|
31856
|
+
const out = {};
|
|
31857
|
+
for (const [k, v] of Object.entries(fields)) {
|
|
31858
|
+
if (v === void 0 || v === null) continue;
|
|
31859
|
+
out[k] = v;
|
|
31860
|
+
}
|
|
31861
|
+
return out;
|
|
31862
|
+
}
|
|
31863
|
+
function propertyDescriptor(city, ds) {
|
|
31864
|
+
const dateField = ds.orderField ?? ds.fields.openedDate;
|
|
31865
|
+
return {
|
|
31866
|
+
citySlug: city.slug,
|
|
31867
|
+
kind: ds.kind,
|
|
31868
|
+
provider: ds.type,
|
|
31869
|
+
endpoint: ds.url,
|
|
31870
|
+
resourceId: ds.resourceId,
|
|
31871
|
+
lookup: "address",
|
|
31872
|
+
addressField: ds.fields.address,
|
|
31873
|
+
addressParts: ds.fields.addressParts,
|
|
31874
|
+
streetNumberField: ds.fields.streetNumber,
|
|
31875
|
+
dateField,
|
|
31876
|
+
scopeWhere: ds.where,
|
|
31877
|
+
fields: fieldRecord(ds.fields),
|
|
31878
|
+
statusBuckets: ds.statusBuckets,
|
|
31879
|
+
coverage: ds.coverage,
|
|
31880
|
+
scopeNote: city.scopeNote,
|
|
31881
|
+
corsEnabled: true,
|
|
31882
|
+
freshness: {
|
|
31883
|
+
lastVerified: city.lastVerified,
|
|
31884
|
+
latestRecordDate: ds.latestRecordDate ?? null,
|
|
31885
|
+
dateField: dateField ?? null
|
|
31886
|
+
},
|
|
31887
|
+
queryTemplate: null,
|
|
31888
|
+
sampleQuery: propertyQueryUrl(ds, ""),
|
|
31889
|
+
queryNote: propertyNote(ds)
|
|
31890
|
+
};
|
|
31891
|
+
}
|
|
31892
|
+
function zoningDescriptor(city) {
|
|
31893
|
+
const mode = city.kind ?? "cases";
|
|
31894
|
+
if (mode === "current-zoning") {
|
|
31895
|
+
const cz = city.currentZoning;
|
|
31896
|
+
if (!cz) return null;
|
|
31897
|
+
const template2 = currentZoningTemplate(cz);
|
|
31898
|
+
return {
|
|
31899
|
+
citySlug: city.slug,
|
|
31900
|
+
kind: "zoning",
|
|
31901
|
+
zoningMode: "current-zoning",
|
|
31902
|
+
provider: cz.type,
|
|
31903
|
+
endpoint: cz.url,
|
|
31904
|
+
lookup: "location",
|
|
31905
|
+
fields: fieldRecord(cz.fields),
|
|
31906
|
+
corsEnabled: true,
|
|
31907
|
+
freshness: { lastVerified: city.lastVerified, latestRecordDate: null, dateField: null },
|
|
31908
|
+
queryTemplate: templateFromUrl(template2, POINT_PLACEHOLDER),
|
|
31909
|
+
sampleQuery: null,
|
|
31910
|
+
queryNote: CURRENT_ZONING_NOTE
|
|
31911
|
+
};
|
|
31912
|
+
}
|
|
31913
|
+
const src = city.cases;
|
|
31914
|
+
if (!src) return null;
|
|
31915
|
+
const lookup = src.lookup ?? "address";
|
|
31916
|
+
const dateField = src.orderField ?? src.fields.appliedDate;
|
|
31917
|
+
const template = lookup === "location" ? templateFromUrl(casesLocationTemplate(src), POINT_PLACEHOLDER) : null;
|
|
31918
|
+
return {
|
|
31919
|
+
citySlug: city.slug,
|
|
31920
|
+
kind: "zoning",
|
|
31921
|
+
zoningMode: "cases",
|
|
31922
|
+
provider: src.type,
|
|
31923
|
+
endpoint: src.url,
|
|
31924
|
+
lookup,
|
|
31925
|
+
addressField: src.fields.address,
|
|
31926
|
+
addressParts: src.fields.addressParts,
|
|
31927
|
+
dateField,
|
|
31928
|
+
scopeWhere: src.where,
|
|
31929
|
+
fields: fieldRecord(src.fields),
|
|
31930
|
+
statusBuckets: src.statusBuckets,
|
|
31931
|
+
coverage: src.caseLabel,
|
|
31932
|
+
corsEnabled: true,
|
|
31933
|
+
freshness: {
|
|
31934
|
+
lastVerified: city.lastVerified,
|
|
31935
|
+
latestRecordDate: src.latestRecordDate ?? null,
|
|
31936
|
+
dateField: dateField ?? null
|
|
31937
|
+
},
|
|
31938
|
+
queryTemplate: template,
|
|
31939
|
+
sampleQuery: casesQueryUrl(src, ""),
|
|
31940
|
+
queryNote: casesNote(src)
|
|
31941
|
+
};
|
|
31942
|
+
}
|
|
31943
|
+
function cityDatasetDescriptors(property, zoning, kind) {
|
|
31944
|
+
const out = [];
|
|
31945
|
+
if (property) {
|
|
31946
|
+
for (const k of ["violations", "permits"]) {
|
|
31947
|
+
const ds = property.datasets[k];
|
|
31948
|
+
if (ds && (!kind || kind === k)) out.push(propertyDescriptor(property, ds));
|
|
31949
|
+
}
|
|
31950
|
+
}
|
|
31951
|
+
if (zoning && (!kind || kind === "zoning")) {
|
|
31952
|
+
const d = zoningDescriptor(zoning);
|
|
31953
|
+
if (d) out.push(d);
|
|
31954
|
+
}
|
|
31955
|
+
return out;
|
|
31956
|
+
}
|
|
31957
|
+
function datasetQueryUrl(d, property, zoning, street) {
|
|
31958
|
+
if (d.kind === "zoning") {
|
|
31959
|
+
if (!zoning || (zoning.kind ?? "cases") !== "cases" || !zoning.cases) return null;
|
|
31960
|
+
return casesQueryUrl(zoning.cases, street);
|
|
31961
|
+
}
|
|
31962
|
+
const ds = property?.datasets[d.kind];
|
|
31963
|
+
return ds ? propertyQueryUrl(ds, street) : null;
|
|
31964
|
+
}
|
|
31965
|
+
function streetForDataset(d, street) {
|
|
31966
|
+
if (!street || d.lookup !== "address") return street;
|
|
31967
|
+
return splitAddressStreetName(d.addressParts, d.addressField, d.streetNumberField, street);
|
|
31968
|
+
}
|
|
31969
|
+
var SUMMARIES = mergeCityIndexes(cityPropertyIndex.cities, cityZoningIndex.cities);
|
|
31970
|
+
var CITY_STREET_MAX_LEN = 120;
|
|
31971
|
+
function text(value) {
|
|
31972
|
+
return value === null || value === void 0 ? "" : String(value);
|
|
31973
|
+
}
|
|
31974
|
+
function streetArg(value) {
|
|
31975
|
+
const street = text(value);
|
|
31976
|
+
if (street.length > CITY_STREET_MAX_LEN) {
|
|
31977
|
+
throw new RangeError(`street must be at most ${CITY_STREET_MAX_LEN} characters`);
|
|
31978
|
+
}
|
|
31979
|
+
try {
|
|
31980
|
+
encodeURIComponent(street);
|
|
31981
|
+
} catch {
|
|
31982
|
+
throw new TypeError("street must be well-formed text (no unpaired surrogate)");
|
|
31983
|
+
}
|
|
31984
|
+
return street;
|
|
31985
|
+
}
|
|
31986
|
+
function listCities(filter = {}) {
|
|
31987
|
+
return SUMMARIES.filter(
|
|
31988
|
+
(c) => (!filter.state || cityInState(c, filter.state)) && (!filter.kind || c.kinds.includes(filter.kind)) && (!filter.countySlug || c.countySlug === filter.countySlug)
|
|
31989
|
+
).map((c) => ({ ...c, kinds: [...c.kinds], names: [...c.names] }));
|
|
31990
|
+
}
|
|
31991
|
+
function findCity(ref, state) {
|
|
31992
|
+
return findCityIn(SUMMARIES, text(ref), state === null || state === void 0 ? void 0 : text(state)).map((c) => ({
|
|
31993
|
+
...c,
|
|
31994
|
+
kinds: [...c.kinds],
|
|
31995
|
+
names: [...c.names]
|
|
31996
|
+
}));
|
|
31997
|
+
}
|
|
31998
|
+
function getCityProperty(slug) {
|
|
31999
|
+
return Object.prototype.hasOwnProperty.call(PROPERTY_CITIES, slug) ? PROPERTY_CITIES[slug] : void 0;
|
|
32000
|
+
}
|
|
32001
|
+
function getCityZoning(slug) {
|
|
32002
|
+
return Object.prototype.hasOwnProperty.call(ZONING_CITIES, slug) ? ZONING_CITIES[slug] : void 0;
|
|
32003
|
+
}
|
|
32004
|
+
function cityDatasets(slug, kind) {
|
|
32005
|
+
return cityDatasetDescriptors(getCityProperty(text(slug)), getCityZoning(text(slug)), kind);
|
|
32006
|
+
}
|
|
32007
|
+
function buildCityQuery(dataset, street) {
|
|
32008
|
+
const slug = text(dataset?.citySlug);
|
|
32009
|
+
return datasetQueryUrl(dataset, getCityProperty(slug), getCityZoning(slug), streetForDataset(dataset, streetArg(street)));
|
|
32010
|
+
}
|
|
32011
|
+
function citiesForCounty(stateSlug, countySlug) {
|
|
32012
|
+
return citiesForCountyIn(SUMMARIES, stateSlug, countySlug).map((c) => ({ ...c, kinds: [...c.kinds], names: [...c.names] }));
|
|
32013
|
+
}
|
|
32014
|
+
|
|
32015
|
+
export { CITY_RECORD_LIMIT, CITY_STREET_MAX_LEN, LIVE_STATUS_URL, POINT_PLACEHOLDER, atlas, atlasIndex, buildCityQuery, buildParcelLookupDeepLink, canonicalLayerUrl, casesLocationTemplate, casesQueryUrl, citiesForCounty, citiesForCountyIn, cityDatasetDescriptors, cityDatasets, cityPath, cityPropertyIndex, cityZoningIndex, countyOffersAttributeSearch, countyPath, countySlugFromName, currentZoningTemplate, findCity, findCityIn, findCounty, findCountyByFips, findState, getCityProperty, getCityZoning, isReviewedUnservable, listCities, listCountiesByState, listStates, mergeCityIndexes, offersAttributeSearch, offersPagination, propertyQueryUrl, reviewedCapability, slugify, splitAddressStreetName, splitStreet, statePath, streetForDataset };
|