@urbankitstudio/atlas 0.6.34 → 0.6.35
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 +15 -5
- package/data/city-property/fort-worth.json +1 -1
- package/data/city-property/los-angeles.json +1 -1
- package/data/city-property/orlando.json +5 -3
- package/data/city-property/scottsdale.json +1 -1
- package/data/city-zoning/orlando.json +2 -1
- package/data/index.json +5 -5
- package/data/tennessee.json +56 -1
- package/dist/index.cjs +159 -30
- package/dist/index.d.cts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +159 -30
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -143,12 +143,22 @@ for (const ds of cityDatasets(dallas.slug, "permits")) {
|
|
|
143
143
|
Three lookup modes appear in `dataset.lookup`. `address` is a case-insensitive substring match
|
|
144
144
|
on `dataset.addressField` (the common case); the street is escaped for the provider's SQL by
|
|
145
145
|
`buildCityQuery`, which is why an address lookup carries no paste-in template, and the LIKE
|
|
146
|
-
wildcards `%` and `_` stay active as they do on the site.
|
|
146
|
+
wildcards `%` and `_` stay active as they do on the site. A dataset that sets `houseNumberSpaceRuns`
|
|
147
|
+
(only Orlando's, whose tables store two or three spaces after the house number: `4274 TATUM ST`)
|
|
148
|
+
also matches the space after a leading house number as a run of one to four spaces, or the spacing
|
|
149
|
+
as typed, and nothing else, so `4274 Tatum St` finds them but not `4274 OLD TATUM ST`; every other
|
|
150
|
+
dataset matches the spacing as typed. When `dataset.addressParts` lists more
|
|
147
151
|
columns than `addressField` (Dallas violations store `str_num`, `str_prefix`, `str_nam`,
|
|
148
152
|
`str_suffix`), the name column holds the street name alone, so `buildCityQuery` matches the
|
|
149
153
|
derived name: the typed house number comes off, then a leading directional when the table has a
|
|
150
|
-
direction column, then one trailing street type when it has a type column
|
|
151
|
-
|
|
154
|
+
direction column, then one trailing street type when it has a type column (a strip that would leave
|
|
155
|
+
a lone letter, no letter or digit, or only a direction or type word a leading directional exposed,
|
|
156
|
+
as `N St` would become `St`, is not applied past the house number: `100 N St` sends `N St`, `100 %` and `100 E` are sent as typed,
|
|
157
|
+
while `100 Court St` sends `Court`, and `2600 South Blvd` sends `South` where the table has a type column); `streetForDataset`
|
|
158
|
+
returns that name, and every row on the street comes back for you to filter by house number. A dataset
|
|
159
|
+
that keeps the house number in its own column (`streetNumberField`: Los Angeles violations, Fort Worth
|
|
160
|
+
permits, Scottsdale violations) matches the number on that column and the name on `addressField`; a street
|
|
161
|
+
typed without a number gets the same trimming, so `Funtier Ct` is matched as `Funtier` and `South St` as `South`. `location` means the docket is published on parcel
|
|
152
162
|
shapes with no address column (Denver, Charlotte): geocode the address yourself and put the
|
|
153
163
|
WGS84 point into `queryTemplate` where `{LON},{LAT}` stands. `parcel` (New York) is keyed by
|
|
154
164
|
parcel id; `queryNote` spells out the two joins. `scopeWhere`, when present, is part of the
|
|
@@ -235,9 +245,9 @@ read `addedAt` and fall back to the oldest `lastVerified` only when it is absent
|
|
|
235
245
|
|
|
236
246
|
## Coverage today
|
|
237
247
|
|
|
238
|
-
The atlas bundles **
|
|
248
|
+
The atlas bundles **395 counties across all 50 US states and DC** (413 verified endpoints), covering the largest counties in each state, and every county in Mississippi. Call `listStates()` to enumerate the full set.
|
|
239
249
|
|
|
240
|
-
Every state has at least one county on record, and
|
|
250
|
+
Every state has at least one county on record, and 386 of the 395 carry a verified endpoint. The other 9 have `hasPublicRest: false` and an empty `endpoints` array, with `notes` recording the reason and who to contact. Those reasons vary: a subscription-only regional GIS partner, a statewide server that requires an auth token, a state with no county-level parcel authority, a county viewer with no public query API, a county that does not publish owner names online. They ship rather than being omitted, so `findCounty()` still resolves them. **Check `hasPublicRest`** rather than assuming every county has an endpoint; `totals.countiesWithEndpoint` gives the queryable count directly.
|
|
241
251
|
|
|
242
252
|
The city registries cover 30 cities with code-violation or building-permit datasets, 19 with zoning-case datasets. Call `listCities()` for the current set.
|
|
243
253
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"orderField": "File_Date",
|
|
35
35
|
"streetNumberType": "number",
|
|
36
36
|
"latestRecordDate": "2026-10-13",
|
|
37
|
-
"coverage": "Fort Worth development permits, about 1.6 million records filed 2001 to present. Trade permits (electrical, mechanical, plumbing, backflow) are included alongside building permits. The street is split across columns: with a house number, '8653 Funtier Ct' is matched as 8653 on Addr_No and 'Funtier' on Street_Name (one leading direction and one common street type are dropped). Without a house number the
|
|
37
|
+
"coverage": "Fort Worth development permits, about 1.6 million records filed 2001 to present. Trade permits (electrical, mechanical, plumbing, backflow) are included alongside building permits. The street is split across columns: with a house number, '8653 Funtier Ct' is matched as 8653 on Addr_No and 'Funtier' on Street_Name (one leading direction and one common street type are dropped). Without a house number the name alone gets the same trimming, so 'Funtier Ct' is matched as 'Funtier' on Street_Name.",
|
|
38
38
|
"recordLabel": "Permit",
|
|
39
39
|
"openedLabel": "Filed",
|
|
40
40
|
"fields": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"orderField": "adddttm",
|
|
17
17
|
"streetNumberType": "text",
|
|
18
18
|
"latestRecordDate": "2026-10-09",
|
|
19
|
-
"coverage": "Open LADBS code-enforcement cases only, about 29,000, opened 1995 to present. Closed cases are published in a separate dataset (rken-a55j) that this tool does not search. The street is split across columns: with a house number, '139 W 88th St' is matched as 139 on stno and '88th' on stname (one leading direction and one common street type are dropped). Without a house number the
|
|
19
|
+
"coverage": "Open LADBS code-enforcement cases only, about 29,000, opened 1995 to present. Closed cases are published in a separate dataset (rken-a55j) that this tool does not search. The street is split across columns: with a house number, '139 W 88th St' is matched as 139 on stno and '88th' on stname (one leading direction and one common street type are dropped). Without a house number the name alone gets the same trimming, so '88th St' is matched as '88th' on stname.",
|
|
20
20
|
"recordLabel": "Case",
|
|
21
21
|
"openedLabel": "Opened",
|
|
22
22
|
"fields": {
|
|
@@ -10,13 +10,14 @@
|
|
|
10
10
|
"datasets": {
|
|
11
11
|
"violations": {
|
|
12
12
|
"kind": "violations",
|
|
13
|
+
"houseNumberSpaceRuns": 4,
|
|
13
14
|
"tabLabel": "Code Violations",
|
|
14
15
|
"type": "socrata",
|
|
15
16
|
"url": "https://data.cityoforlando.net/resource/k6e8-nw6w.json",
|
|
16
17
|
"orderField": "casedt",
|
|
17
18
|
"where": "case_type in ('Housing','Lot','Zoning','Abatement','Commercial')",
|
|
18
19
|
"latestRecordDate": "2026-09-23",
|
|
19
|
-
"coverage": "Orlando code-enforcement cases of the housing, lot, zoning, abatement and commercial types, about 147,000 opened 1994 to present. Business-tax, ticket, sign and other case types in the same table are left out. Lags the calendar: on 2026-10-14 the newest case in the table was opened 2026-09-23.
|
|
20
|
+
"coverage": "Orlando code-enforcement cases of the housing, lot, zoning, abatement and commercial types, about 147,000 opened 1994 to present. Business-tax, ticket, sign and other case types in the same table are left out. Lags the calendar: on 2026-10-14 the newest case in the table was opened 2026-09-23. 99,433 of the 146,669 case addresses carry two spaces after the house number ('4274 TATUM ST'); the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so '4274 Tatum St' finds the case.",
|
|
20
21
|
"recordLabel": "Case",
|
|
21
22
|
"openedLabel": "Opened",
|
|
22
23
|
"closedLabel": "Resolved",
|
|
@@ -31,13 +32,14 @@
|
|
|
31
32
|
},
|
|
32
33
|
"permits": {
|
|
33
34
|
"kind": "permits",
|
|
35
|
+
"houseNumberSpaceRuns": 4,
|
|
34
36
|
"tabLabel": "Building Permits",
|
|
35
37
|
"type": "socrata",
|
|
36
38
|
"url": "https://data.cityoforlando.net/resource/ryhf-m453.json",
|
|
37
39
|
"orderField": "processed_date",
|
|
38
40
|
"where": "processed_date IS NOT NULL",
|
|
39
41
|
"latestRecordDate": "2026-09-23",
|
|
40
|
-
"coverage": "Orlando permit applications of every type (building, electrical, plumbing, mechanical, engineering, fire and more), about 1.1 million on record. Lags the calendar: on 2026-10-14 the newest application in the table was processed 2026-09-23. About 5% of permit addresses (
|
|
42
|
+
"coverage": "Orlando permit applications of every type (building, electrical, plumbing, mechanical, engineering, fire and more), about 1.1 million on record. Lags the calendar: on 2026-10-14 the newest application in the table was processed 2026-09-23. About 5% of permit addresses (55,657 of 1,105,323) carry two or three spaces after the house number; the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so a typed full address finds them.",
|
|
41
43
|
"recordLabel": "Permit",
|
|
42
44
|
"openedLabel": "Processed",
|
|
43
45
|
"closedLabel": "Finaled",
|
|
@@ -58,6 +60,6 @@
|
|
|
58
60
|
"url": "https://data.cityoforlando.net/",
|
|
59
61
|
"license": "Public record (City of Orlando)",
|
|
60
62
|
"portalLabel": "Orlando Open Data (Socrata)",
|
|
61
|
-
"currentRecordsNote": "Code-enforcement cases and permit applications are both published on the City of Orlando's open-data portal. On 2026-10-14 the newest record in both tables was dated 2026-09-23, although the portal reported a same-day refresh. Most code-case addresses carry two spaces after the house number (\"4274 TATUM ST\")
|
|
63
|
+
"currentRecordsNote": "Code-enforcement cases and permit applications are both published on the City of Orlando's open-data portal. On 2026-10-14 the newest record in both tables was dated 2026-09-23, although the portal reported a same-day refresh. Most code-case addresses carry two spaces after the house number (\"4274 TATUM ST\"); the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so a full address (\"4274 Tatum St\") finds them."
|
|
62
64
|
}
|
|
63
65
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"orderField": "DateComplaintReceived",
|
|
17
17
|
"streetNumberType": "number",
|
|
18
18
|
"latestRecordDate": "2026-10-09",
|
|
19
|
-
"coverage": "Scottsdale code complaints received since 2021-09, about 18,900 rows. Closed complaints only: open complaints are not published, and every row's status begins with CLOSED. No result means no closed complaint on file, not that the property has no open violation. The street is split across columns: with a house number, '4201 N Hayden Rd' is matched as 4201 on StreetNumber and 'Hayden' on StreetName (one leading direction and one common street type are dropped). Without a house number the
|
|
19
|
+
"coverage": "Scottsdale code complaints received since 2021-09, about 18,900 rows. Closed complaints only: open complaints are not published, and every row's status begins with CLOSED. No result means no closed complaint on file, not that the property has no open violation. The street is split across columns: with a house number, '4201 N Hayden Rd' is matched as 4201 on StreetNumber and 'Hayden' on StreetName (one leading direction and one common street type are dropped). Without a house number the name alone gets the same trimming, so 'Hayden Rd' is matched as 'Hayden' on StreetName.",
|
|
20
20
|
"recordLabel": "Complaint",
|
|
21
21
|
"openedLabel": "Received",
|
|
22
22
|
"closedLabel": "Closed",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"type": "socrata",
|
|
12
12
|
"url": "https://data.cityoforlando.net/resource/bhxy-4rji.json",
|
|
13
13
|
"orderField": "application_date",
|
|
14
|
+
"houseNumberSpaceRuns": 4,
|
|
14
15
|
"where": "application_description='Zoning' AND application_date IS NOT NULL",
|
|
15
16
|
"latestRecordDate": "2026-09-18",
|
|
16
17
|
"fields": {
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
"url": "https://data.cityoforlando.net/",
|
|
32
33
|
"license": "Public record (City of Orlando)",
|
|
33
34
|
"portalLabel": "Orlando Open Data (Socrata)",
|
|
34
|
-
"currentRecordsNote": "Zoning cases come from the city's Planning Applications dataset, scoped to the Zoning application type (about 450 cases since 2002; the same table also holds annexations, variances and master plans). Existing and proposed zoning appear only inside each case's comments, not as columns, and the status is Open or Closed without saying approved or denied. About half the case addresses carry two spaces after the house number, so a
|
|
35
|
+
"currentRecordsNote": "Zoning cases come from the city's Planning Applications dataset, scoped to the Zoning application type (about 450 cases since 2002; the same table also holds annexations, variances and master plans). Existing and proposed zoning appear only inside each case's comments, not as columns, and the status is Open or Closed without saying approved or denied. About half the case addresses (221 of 407) carry two or three spaces after the house number; the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so a full address finds them as well as a street name alone does.",
|
|
35
36
|
"datasetUrl": "https://data.cityoforlando.net/d/bhxy-4rji"
|
|
36
37
|
}
|
|
37
38
|
}
|
package/data/index.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"lastUpdated": "2026-10-14",
|
|
4
4
|
"totals": {
|
|
5
5
|
"states": 51,
|
|
6
|
-
"counties":
|
|
7
|
-
"endpoints":
|
|
8
|
-
"countiesWithEndpoint":
|
|
6
|
+
"counties": 395,
|
|
7
|
+
"endpoints": 413,
|
|
8
|
+
"countiesWithEndpoint": 386,
|
|
9
9
|
"countiesUnprobeable": 1
|
|
10
10
|
},
|
|
11
11
|
"states": [
|
|
@@ -349,8 +349,8 @@
|
|
|
349
349
|
"slug": "tennessee",
|
|
350
350
|
"name": "Tennessee",
|
|
351
351
|
"abbrev": "TN",
|
|
352
|
-
"countyCount":
|
|
353
|
-
"endpointCount":
|
|
352
|
+
"countyCount": 5,
|
|
353
|
+
"endpointCount": 5,
|
|
354
354
|
"populated": true
|
|
355
355
|
},
|
|
356
356
|
{
|
package/data/tennessee.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"stateSlug": "tennessee",
|
|
3
3
|
"stateName": "Tennessee",
|
|
4
4
|
"stateAbbrev": "TN",
|
|
5
|
-
"lastUpdated": "2026-10-
|
|
5
|
+
"lastUpdated": "2026-10-14",
|
|
6
6
|
"counties": [
|
|
7
7
|
{
|
|
8
8
|
"id": "tn-davidson",
|
|
@@ -235,6 +235,61 @@
|
|
|
235
235
|
"email": null
|
|
236
236
|
},
|
|
237
237
|
"notes": "Sullivan County, Tennessee (county seat Blountville; Kingsport and Bristol) has no county-run public REST parcel layer with owner names. Its parcels are carried on the City of Johnson City's regional ParcelPublishing/TaxParcels MapServer layer 0 (Tax Parcels), which also holds Washington, Carter, Unicoi and neighbouring counties. Filter with COUNTYNAME='Sullivan County' (78,958 of the layer's 183,538 rows on 2026-10-03); the plain value 'Sullivan' matches nothing. About 313 Sullivan parcels (GISLINK starting 082) carry a NULL or different COUNTYNAME and fall outside this scope, roughly 0.4 percent; COUNTY_ID=82 catches them but admits 314 rows from outside the county, so the name scope stays. The owner is OWNER (with OWNER2); the parcel ID is GISLINK (e.g. 082029B A 01600) with ID as the display form (029B A 016.00), and PARID is NULL for Sullivan rows. ADDRESS stores the street name first and the house number last (BRENTWOOD DR 377), so search on a street word: a number-first LIKE ('%377 BRENTWOOD DR%') returns nothing, and only 647 of 78,737 Sullivan addresses start with a digit, so the free tools' address auto-lookup will miss most Sullivan addresses until they retry number-last. The owner mailing address is MAILADDR with MAILCITY, STATE and ZIP. CARDURL links each parcel to the state's TPAD property card. CORS reflects the request Origin (Access-Control-Allow-Origin echoed back, credentials true); a request without an Origin gets no CORS header. maxRecordCount is 2000. LICENCE: RESTRICTED. The ArcGIS item's licence text reads: \"Read access only for all city staff. Delivered products are not to be resold by the purchaser for any reason and may not be reproduced without the written permission of the staff of the Johnson City GIS Division.\" The item and the REST endpoint are public, but the terms restrict resale and reproduction, so the atlas records only the query URL, stores no copy of the layer beyond the short-lived server cache every live query passes through, and serves this county by live query only; Leo reviewed and accepted that exposure on 2026-10-03. The data was last refreshed in October 2025. Sullivan County's own SULLIVAN service on ArcGIS Online has no owner field, and Tennessee publishes no statewide parcel REST layer. Verified live 2026-10-03: owner SMITH returned rows (first SMITH BETTY TRUSTEE, GISLINK 082029B A 01600, BRENTWOOD DR 377, mailing 377 BRENTWOOD DRIVE KINGSPORT)."
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"id": "tn-montgomery",
|
|
241
|
+
"state": "TN",
|
|
242
|
+
"stateName": "Tennessee",
|
|
243
|
+
"stateSlug": "tennessee",
|
|
244
|
+
"county": "Montgomery",
|
|
245
|
+
"countySlug": "montgomery-county",
|
|
246
|
+
"countyFips": "47125",
|
|
247
|
+
"hasPublicRest": true,
|
|
248
|
+
"endpoints": [
|
|
249
|
+
{
|
|
250
|
+
"url": "https://gis.montgomerytn.gov/gisserver/rest/services/PublicParcels/MapServer/0",
|
|
251
|
+
"serviceType": "MapServer",
|
|
252
|
+
"layerIndex": 0,
|
|
253
|
+
"layerName": "PublicParcels",
|
|
254
|
+
"supportsQuery": true,
|
|
255
|
+
"corsEnabled": true,
|
|
256
|
+
"searchFields": [
|
|
257
|
+
{
|
|
258
|
+
"name": "ParcelNo",
|
|
259
|
+
"label": "Parcel Number (e.g. 066E A 00600 000)",
|
|
260
|
+
"searchable": true
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "GISLINK",
|
|
264
|
+
"label": "GIS Link (Parcel ID, e.g. 063066E A 00600)",
|
|
265
|
+
"searchable": true
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "PropertyAddress",
|
|
269
|
+
"label": "Situs Address",
|
|
270
|
+
"searchable": true
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "PropertyCity",
|
|
274
|
+
"label": "Situs City",
|
|
275
|
+
"searchable": false
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"sampleQuery": "https://gis.montgomerytn.gov/gisserver/rest/services/PublicParcels/MapServer/0/query?where=UPPER(PropertyAddress)+LIKE+'%25MAIN%25'&outFields=ParcelNo,GISLINK,PropertyAddress,PropertyCity&returnGeometry=false&f=json",
|
|
279
|
+
"license": "unknown",
|
|
280
|
+
"licenseUrl": "http://montgomerytn.gov/assessor/public-parcels",
|
|
281
|
+
"status": "live",
|
|
282
|
+
"lastVerified": "2026-10-14",
|
|
283
|
+
"verifiedBy": "manual"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
"contact": {
|
|
287
|
+
"department": "Montgomery County Assessor of Property",
|
|
288
|
+
"url": "http://montgomerytn.gov/assessor/gis",
|
|
289
|
+
"email": null
|
|
290
|
+
},
|
|
291
|
+
"notes": "Montgomery County, Tennessee (Clarksville; FIPS 47125). The county's public parcel layer, the one the Assessor of Property's Public Parcels page advertises, is PublicParcels MapServer layer 0 on the county GIS server (gis.montgomerytn.gov, ArcGIS Server): 99,863 rows on 2026-10-14. THIS LAYER PUBLISHES PARCEL IDS AND SITUS ADDRESSES BUT NO OWNER OR MAILING FIELDS, so owner lookups return nothing here; look a parcel up by parcel number, by street address or by point. The parcel id is ParcelNo (e.g. 066E A 00600 000) with GISLINK as the shorter link id (063066E A 00600); the situs is PropertyAddress with PropertyCity. The rows are one per building card, not one per parcel: a parcel with several buildings repeats its parcel id and situs on each row (one sampled parcel returned six), so counts of rows overstate counts of parcels. The layer also carries subdivision, lot and block, deed book and page, property type, taxing district, acreage, assessed and appraised values, building attributes and the last sale. The layer's name is PublicParcels, the wkid is 102736 (Tennessee State Plane, US feet; latestWkid 2274), and outSR=4326 returns longitude and latitude. maxRecordCount is 2000 with pagination. CORS: the server echoes the request Origin in Access-Control-Allow-Origin, so a probe without an Origin header reads it as closed. No license or terms are published on the layer or on the assessor's pages. Verified 2026-10-14: a count of 99,863, a situs LIKE query on MAIN (120 rows) and an outSR=4326 query.",
|
|
292
|
+
"addedAt": "2026-10-14"
|
|
238
293
|
}
|
|
239
294
|
]
|
|
240
295
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -28,9 +28,9 @@ var data_default = {
|
|
|
28
28
|
lastUpdated: "2026-10-14",
|
|
29
29
|
totals: {
|
|
30
30
|
states: 51,
|
|
31
|
-
counties:
|
|
32
|
-
endpoints:
|
|
33
|
-
countiesWithEndpoint:
|
|
31
|
+
counties: 395,
|
|
32
|
+
endpoints: 413,
|
|
33
|
+
countiesWithEndpoint: 386,
|
|
34
34
|
countiesUnprobeable: 1
|
|
35
35
|
},
|
|
36
36
|
states: [
|
|
@@ -374,8 +374,8 @@ var data_default = {
|
|
|
374
374
|
slug: "tennessee",
|
|
375
375
|
name: "Tennessee",
|
|
376
376
|
abbrev: "TN",
|
|
377
|
-
countyCount:
|
|
378
|
-
endpointCount:
|
|
377
|
+
countyCount: 5,
|
|
378
|
+
endpointCount: 5,
|
|
379
379
|
populated: true
|
|
380
380
|
},
|
|
381
381
|
{
|
|
@@ -31386,7 +31386,7 @@ var tennessee_default = {
|
|
|
31386
31386
|
stateSlug: "tennessee",
|
|
31387
31387
|
stateName: "Tennessee",
|
|
31388
31388
|
stateAbbrev: "TN",
|
|
31389
|
-
lastUpdated: "2026-10-
|
|
31389
|
+
lastUpdated: "2026-10-14",
|
|
31390
31390
|
counties: [
|
|
31391
31391
|
{
|
|
31392
31392
|
id: "tn-davidson",
|
|
@@ -31619,6 +31619,61 @@ var tennessee_default = {
|
|
|
31619
31619
|
email: null
|
|
31620
31620
|
},
|
|
31621
31621
|
notes: `Sullivan County, Tennessee (county seat Blountville; Kingsport and Bristol) has no county-run public REST parcel layer with owner names. Its parcels are carried on the City of Johnson City's regional ParcelPublishing/TaxParcels MapServer layer 0 (Tax Parcels), which also holds Washington, Carter, Unicoi and neighbouring counties. Filter with COUNTYNAME='Sullivan County' (78,958 of the layer's 183,538 rows on 2026-10-03); the plain value 'Sullivan' matches nothing. About 313 Sullivan parcels (GISLINK starting 082) carry a NULL or different COUNTYNAME and fall outside this scope, roughly 0.4 percent; COUNTY_ID=82 catches them but admits 314 rows from outside the county, so the name scope stays. The owner is OWNER (with OWNER2); the parcel ID is GISLINK (e.g. 082029B A 01600) with ID as the display form (029B A 016.00), and PARID is NULL for Sullivan rows. ADDRESS stores the street name first and the house number last (BRENTWOOD DR 377), so search on a street word: a number-first LIKE ('%377 BRENTWOOD DR%') returns nothing, and only 647 of 78,737 Sullivan addresses start with a digit, so the free tools' address auto-lookup will miss most Sullivan addresses until they retry number-last. The owner mailing address is MAILADDR with MAILCITY, STATE and ZIP. CARDURL links each parcel to the state's TPAD property card. CORS reflects the request Origin (Access-Control-Allow-Origin echoed back, credentials true); a request without an Origin gets no CORS header. maxRecordCount is 2000. LICENCE: RESTRICTED. The ArcGIS item's licence text reads: "Read access only for all city staff. Delivered products are not to be resold by the purchaser for any reason and may not be reproduced without the written permission of the staff of the Johnson City GIS Division." The item and the REST endpoint are public, but the terms restrict resale and reproduction, so the atlas records only the query URL, stores no copy of the layer beyond the short-lived server cache every live query passes through, and serves this county by live query only; Leo reviewed and accepted that exposure on 2026-10-03. The data was last refreshed in October 2025. Sullivan County's own SULLIVAN service on ArcGIS Online has no owner field, and Tennessee publishes no statewide parcel REST layer. Verified live 2026-10-03: owner SMITH returned rows (first SMITH BETTY TRUSTEE, GISLINK 082029B A 01600, BRENTWOOD DR 377, mailing 377 BRENTWOOD DRIVE KINGSPORT).`
|
|
31622
|
+
},
|
|
31623
|
+
{
|
|
31624
|
+
id: "tn-montgomery",
|
|
31625
|
+
state: "TN",
|
|
31626
|
+
stateName: "Tennessee",
|
|
31627
|
+
stateSlug: "tennessee",
|
|
31628
|
+
county: "Montgomery",
|
|
31629
|
+
countySlug: "montgomery-county",
|
|
31630
|
+
countyFips: "47125",
|
|
31631
|
+
hasPublicRest: true,
|
|
31632
|
+
endpoints: [
|
|
31633
|
+
{
|
|
31634
|
+
url: "https://gis.montgomerytn.gov/gisserver/rest/services/PublicParcels/MapServer/0",
|
|
31635
|
+
serviceType: "MapServer",
|
|
31636
|
+
layerIndex: 0,
|
|
31637
|
+
layerName: "PublicParcels",
|
|
31638
|
+
supportsQuery: true,
|
|
31639
|
+
corsEnabled: true,
|
|
31640
|
+
searchFields: [
|
|
31641
|
+
{
|
|
31642
|
+
name: "ParcelNo",
|
|
31643
|
+
label: "Parcel Number (e.g. 066E A 00600 000)",
|
|
31644
|
+
searchable: true
|
|
31645
|
+
},
|
|
31646
|
+
{
|
|
31647
|
+
name: "GISLINK",
|
|
31648
|
+
label: "GIS Link (Parcel ID, e.g. 063066E A 00600)",
|
|
31649
|
+
searchable: true
|
|
31650
|
+
},
|
|
31651
|
+
{
|
|
31652
|
+
name: "PropertyAddress",
|
|
31653
|
+
label: "Situs Address",
|
|
31654
|
+
searchable: true
|
|
31655
|
+
},
|
|
31656
|
+
{
|
|
31657
|
+
name: "PropertyCity",
|
|
31658
|
+
label: "Situs City",
|
|
31659
|
+
searchable: false
|
|
31660
|
+
}
|
|
31661
|
+
],
|
|
31662
|
+
sampleQuery: "https://gis.montgomerytn.gov/gisserver/rest/services/PublicParcels/MapServer/0/query?where=UPPER(PropertyAddress)+LIKE+'%25MAIN%25'&outFields=ParcelNo,GISLINK,PropertyAddress,PropertyCity&returnGeometry=false&f=json",
|
|
31663
|
+
license: "unknown",
|
|
31664
|
+
licenseUrl: "http://montgomerytn.gov/assessor/public-parcels",
|
|
31665
|
+
status: "live",
|
|
31666
|
+
lastVerified: "2026-10-14",
|
|
31667
|
+
verifiedBy: "manual"
|
|
31668
|
+
}
|
|
31669
|
+
],
|
|
31670
|
+
contact: {
|
|
31671
|
+
department: "Montgomery County Assessor of Property",
|
|
31672
|
+
url: "http://montgomerytn.gov/assessor/gis",
|
|
31673
|
+
email: null
|
|
31674
|
+
},
|
|
31675
|
+
notes: "Montgomery County, Tennessee (Clarksville; FIPS 47125). The county's public parcel layer, the one the Assessor of Property's Public Parcels page advertises, is PublicParcels MapServer layer 0 on the county GIS server (gis.montgomerytn.gov, ArcGIS Server): 99,863 rows on 2026-10-14. THIS LAYER PUBLISHES PARCEL IDS AND SITUS ADDRESSES BUT NO OWNER OR MAILING FIELDS, so owner lookups return nothing here; look a parcel up by parcel number, by street address or by point. The parcel id is ParcelNo (e.g. 066E A 00600 000) with GISLINK as the shorter link id (063066E A 00600); the situs is PropertyAddress with PropertyCity. The rows are one per building card, not one per parcel: a parcel with several buildings repeats its parcel id and situs on each row (one sampled parcel returned six), so counts of rows overstate counts of parcels. The layer also carries subdivision, lot and block, deed book and page, property type, taxing district, acreage, assessed and appraised values, building attributes and the last sale. The layer's name is PublicParcels, the wkid is 102736 (Tennessee State Plane, US feet; latestWkid 2274), and outSR=4326 returns longitude and latitude. maxRecordCount is 2000 with pagination. CORS: the server echoes the request Origin in Access-Control-Allow-Origin, so a probe without an Origin header reads it as closed. No license or terms are published on the layer or on the assessor's pages. Verified 2026-10-14: a count of 99,863, a situs LIKE query on MAIN (120 rows) and an outSR=4326 query.",
|
|
31676
|
+
addedAt: "2026-10-14"
|
|
31622
31677
|
}
|
|
31623
31678
|
]
|
|
31624
31679
|
};
|
|
@@ -35899,7 +35954,7 @@ var los_angeles_default = {
|
|
|
35899
35954
|
orderField: "adddttm",
|
|
35900
35955
|
streetNumberType: "text",
|
|
35901
35956
|
latestRecordDate: "2026-10-09",
|
|
35902
|
-
coverage: "Open LADBS code-enforcement cases only, about 29,000, opened 1995 to present. Closed cases are published in a separate dataset (rken-a55j) that this tool does not search. The street is split across columns: with a house number, '139 W 88th St' is matched as 139 on stno and '88th' on stname (one leading direction and one common street type are dropped). Without a house number the
|
|
35957
|
+
coverage: "Open LADBS code-enforcement cases only, about 29,000, opened 1995 to present. Closed cases are published in a separate dataset (rken-a55j) that this tool does not search. The street is split across columns: with a house number, '139 W 88th St' is matched as 139 on stno and '88th' on stname (one leading direction and one common street type are dropped). Without a house number the name alone gets the same trimming, so '88th St' is matched as '88th' on stname.",
|
|
35903
35958
|
recordLabel: "Case",
|
|
35904
35959
|
openedLabel: "Opened",
|
|
35905
35960
|
fields: {
|
|
@@ -35981,7 +36036,7 @@ var fort_worth_default = {
|
|
|
35981
36036
|
orderField: "File_Date",
|
|
35982
36037
|
streetNumberType: "number",
|
|
35983
36038
|
latestRecordDate: "2026-10-13",
|
|
35984
|
-
coverage: "Fort Worth development permits, about 1.6 million records filed 2001 to present. Trade permits (electrical, mechanical, plumbing, backflow) are included alongside building permits. The street is split across columns: with a house number, '8653 Funtier Ct' is matched as 8653 on Addr_No and 'Funtier' on Street_Name (one leading direction and one common street type are dropped). Without a house number the
|
|
36039
|
+
coverage: "Fort Worth development permits, about 1.6 million records filed 2001 to present. Trade permits (electrical, mechanical, plumbing, backflow) are included alongside building permits. The street is split across columns: with a house number, '8653 Funtier Ct' is matched as 8653 on Addr_No and 'Funtier' on Street_Name (one leading direction and one common street type are dropped). Without a house number the name alone gets the same trimming, so 'Funtier Ct' is matched as 'Funtier' on Street_Name.",
|
|
35985
36040
|
recordLabel: "Permit",
|
|
35986
36041
|
openedLabel: "Filed",
|
|
35987
36042
|
fields: {
|
|
@@ -36337,13 +36392,14 @@ var orlando_default = {
|
|
|
36337
36392
|
datasets: {
|
|
36338
36393
|
violations: {
|
|
36339
36394
|
kind: "violations",
|
|
36395
|
+
houseNumberSpaceRuns: 4,
|
|
36340
36396
|
tabLabel: "Code Violations",
|
|
36341
36397
|
type: "socrata",
|
|
36342
36398
|
url: "https://data.cityoforlando.net/resource/k6e8-nw6w.json",
|
|
36343
36399
|
orderField: "casedt",
|
|
36344
36400
|
where: "case_type in ('Housing','Lot','Zoning','Abatement','Commercial')",
|
|
36345
36401
|
latestRecordDate: "2026-09-23",
|
|
36346
|
-
coverage: "Orlando code-enforcement cases of the housing, lot, zoning, abatement and commercial types, about 147,000 opened 1994 to present. Business-tax, ticket, sign and other case types in the same table are left out. Lags the calendar: on 2026-10-14 the newest case in the table was opened 2026-09-23.
|
|
36402
|
+
coverage: "Orlando code-enforcement cases of the housing, lot, zoning, abatement and commercial types, about 147,000 opened 1994 to present. Business-tax, ticket, sign and other case types in the same table are left out. Lags the calendar: on 2026-10-14 the newest case in the table was opened 2026-09-23. 99,433 of the 146,669 case addresses carry two spaces after the house number ('4274 TATUM ST'); the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so '4274 Tatum St' finds the case.",
|
|
36347
36403
|
recordLabel: "Case",
|
|
36348
36404
|
openedLabel: "Opened",
|
|
36349
36405
|
closedLabel: "Resolved",
|
|
@@ -36358,13 +36414,14 @@ var orlando_default = {
|
|
|
36358
36414
|
},
|
|
36359
36415
|
permits: {
|
|
36360
36416
|
kind: "permits",
|
|
36417
|
+
houseNumberSpaceRuns: 4,
|
|
36361
36418
|
tabLabel: "Building Permits",
|
|
36362
36419
|
type: "socrata",
|
|
36363
36420
|
url: "https://data.cityoforlando.net/resource/ryhf-m453.json",
|
|
36364
36421
|
orderField: "processed_date",
|
|
36365
36422
|
where: "processed_date IS NOT NULL",
|
|
36366
36423
|
latestRecordDate: "2026-09-23",
|
|
36367
|
-
coverage: "Orlando permit applications of every type (building, electrical, plumbing, mechanical, engineering, fire and more), about 1.1 million on record. Lags the calendar: on 2026-10-14 the newest application in the table was processed 2026-09-23. About 5% of permit addresses (
|
|
36424
|
+
coverage: "Orlando permit applications of every type (building, electrical, plumbing, mechanical, engineering, fire and more), about 1.1 million on record. Lags the calendar: on 2026-10-14 the newest application in the table was processed 2026-09-23. About 5% of permit addresses (55,657 of 1,105,323) carry two or three spaces after the house number; the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so a typed full address finds them.",
|
|
36368
36425
|
recordLabel: "Permit",
|
|
36369
36426
|
openedLabel: "Processed",
|
|
36370
36427
|
closedLabel: "Finaled",
|
|
@@ -36385,7 +36442,7 @@ var orlando_default = {
|
|
|
36385
36442
|
url: "https://data.cityoforlando.net/",
|
|
36386
36443
|
license: "Public record (City of Orlando)",
|
|
36387
36444
|
portalLabel: "Orlando Open Data (Socrata)",
|
|
36388
|
-
currentRecordsNote: `Code-enforcement cases and permit applications are both published on the City of Orlando's open-data portal. On 2026-10-14 the newest record in both tables was dated 2026-09-23, although the portal reported a same-day refresh. Most code-case addresses carry two spaces after the house number ("4274 TATUM ST")
|
|
36445
|
+
currentRecordsNote: `Code-enforcement cases and permit applications are both published on the City of Orlando's open-data portal. On 2026-10-14 the newest record in both tables was dated 2026-09-23, although the portal reported a same-day refresh. Most code-case addresses carry two spaces after the house number ("4274 TATUM ST"); the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so a full address ("4274 Tatum St") finds them.`
|
|
36389
36446
|
}
|
|
36390
36447
|
};
|
|
36391
36448
|
|
|
@@ -36477,7 +36534,7 @@ var scottsdale_default = {
|
|
|
36477
36534
|
orderField: "DateComplaintReceived",
|
|
36478
36535
|
streetNumberType: "number",
|
|
36479
36536
|
latestRecordDate: "2026-10-09",
|
|
36480
|
-
coverage: "Scottsdale code complaints received since 2021-09, about 18,900 rows. Closed complaints only: open complaints are not published, and every row's status begins with CLOSED. No result means no closed complaint on file, not that the property has no open violation. The street is split across columns: with a house number, '4201 N Hayden Rd' is matched as 4201 on StreetNumber and 'Hayden' on StreetName (one leading direction and one common street type are dropped). Without a house number the
|
|
36537
|
+
coverage: "Scottsdale code complaints received since 2021-09, about 18,900 rows. Closed complaints only: open complaints are not published, and every row's status begins with CLOSED. No result means no closed complaint on file, not that the property has no open violation. The street is split across columns: with a house number, '4201 N Hayden Rd' is matched as 4201 on StreetNumber and 'Hayden' on StreetName (one leading direction and one common street type are dropped). Without a house number the name alone gets the same trimming, so 'Hayden Rd' is matched as 'Hayden' on StreetName.",
|
|
36481
36538
|
recordLabel: "Complaint",
|
|
36482
36539
|
openedLabel: "Received",
|
|
36483
36540
|
closedLabel: "Closed",
|
|
@@ -37580,6 +37637,7 @@ var orlando_default2 = {
|
|
|
37580
37637
|
type: "socrata",
|
|
37581
37638
|
url: "https://data.cityoforlando.net/resource/bhxy-4rji.json",
|
|
37582
37639
|
orderField: "application_date",
|
|
37640
|
+
houseNumberSpaceRuns: 4,
|
|
37583
37641
|
where: "application_description='Zoning' AND application_date IS NOT NULL",
|
|
37584
37642
|
latestRecordDate: "2026-09-18",
|
|
37585
37643
|
fields: {
|
|
@@ -37600,7 +37658,7 @@ var orlando_default2 = {
|
|
|
37600
37658
|
url: "https://data.cityoforlando.net/",
|
|
37601
37659
|
license: "Public record (City of Orlando)",
|
|
37602
37660
|
portalLabel: "Orlando Open Data (Socrata)",
|
|
37603
|
-
currentRecordsNote: "Zoning cases come from the city's Planning Applications dataset, scoped to the Zoning application type (about 450 cases since 2002; the same table also holds annexations, variances and master plans). Existing and proposed zoning appear only inside each case's comments, not as columns, and the status is Open or Closed without saying approved or denied. About half the case addresses carry two spaces after the house number, so a
|
|
37661
|
+
currentRecordsNote: "Zoning cases come from the city's Planning Applications dataset, scoped to the Zoning application type (about 450 cases since 2002; the same table also holds annexations, variances and master plans). Existing and proposed zoning appear only inside each case's comments, not as columns, and the status is Open or Closed without saying approved or denied. About half the case addresses (221 of 407) carry two or three spaces after the house number; the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so a full address finds them as well as a street name alone does.",
|
|
37604
37662
|
datasetUrl: "https://data.cityoforlando.net/d/bhxy-4rji"
|
|
37605
37663
|
}
|
|
37606
37664
|
};
|
|
@@ -37704,6 +37762,26 @@ var CITY_RECORD_LIMIT = 30;
|
|
|
37704
37762
|
function esc(s) {
|
|
37705
37763
|
return s.replace(/'/g, "''");
|
|
37706
37764
|
}
|
|
37765
|
+
var HOUSE_GAP_LIMIT = 8;
|
|
37766
|
+
var LIKE_GROUP_BUDGET = 3e3;
|
|
37767
|
+
var HOUSE_AND_GAP = /^(\s*(?:\d[A-Za-z0-9]*|\d+-[A-Za-z0-9]+))\s+(?=\S)/;
|
|
37768
|
+
function likeAlternatives(s, maxRun = 0) {
|
|
37769
|
+
const typed = esc(s);
|
|
37770
|
+
const runs = Math.min(Math.floor(maxRun), HOUSE_GAP_LIMIT);
|
|
37771
|
+
if (!(runs >= 1)) return [typed];
|
|
37772
|
+
const m = HOUSE_AND_GAP.exec(s);
|
|
37773
|
+
if (!m || ORDINAL_STREET.test(m[1].trim())) return [typed];
|
|
37774
|
+
const house = esc(m[1]);
|
|
37775
|
+
const rest = esc(s.slice(m[0].length));
|
|
37776
|
+
const out = Array.from({ length: runs }, (_, i) => `${house}${" ".repeat(i + 1)}${rest}`);
|
|
37777
|
+
return out.includes(typed) ? out : [...out, typed];
|
|
37778
|
+
}
|
|
37779
|
+
function likeAny(street, one, maxRun) {
|
|
37780
|
+
const parts = likeAlternatives(street, maxRun).map(one);
|
|
37781
|
+
if (parts.length < 2) return parts[0];
|
|
37782
|
+
const group = `(${parts.join(" OR ")})`;
|
|
37783
|
+
return encodeURIComponent(group).length > LIKE_GROUP_BUDGET ? one(esc(street)) : group;
|
|
37784
|
+
}
|
|
37707
37785
|
function sqlId(id) {
|
|
37708
37786
|
return `"${id.replace(/"/g, '""')}"`;
|
|
37709
37787
|
}
|
|
@@ -37725,6 +37803,7 @@ var DIRECTIONALS = /* @__PURE__ */ new Set([
|
|
|
37725
37803
|
"SOUTHEAST",
|
|
37726
37804
|
"SOUTHWEST"
|
|
37727
37805
|
]);
|
|
37806
|
+
var FULL_DIRECTIONS = /* @__PURE__ */ new Set(["NORTH", "SOUTH", "EAST", "WEST"]);
|
|
37728
37807
|
var STREET_SUFFIXES = /* @__PURE__ */ new Set([
|
|
37729
37808
|
"ST",
|
|
37730
37809
|
"STREET",
|
|
@@ -37775,22 +37854,50 @@ var STREET_SUFFIXES = /* @__PURE__ */ new Set([
|
|
|
37775
37854
|
"FWY",
|
|
37776
37855
|
"FREEWAY"
|
|
37777
37856
|
]);
|
|
37857
|
+
var ORDINAL_STREET = /^\d+(?:ST|ND|RD|TH)$/i;
|
|
37778
37858
|
function splitStreet(street) {
|
|
37779
|
-
const m = /^\s*(\d+)(
|
|
37780
|
-
if (!m) return null;
|
|
37781
|
-
let
|
|
37859
|
+
const m = /^\s*(\d+)(?!\d)(?:-[A-Za-z0-9]+|[A-Za-z0-9]+)?/.exec(street);
|
|
37860
|
+
if (!m || !/\s/.test(street.charAt(m[0].length)) || ORDINAL_STREET.test(street.trim().split(/\s+/)[0])) return null;
|
|
37861
|
+
let at = m[0].length;
|
|
37862
|
+
while (at < street.length && /\s/.test(street.charAt(at))) at++;
|
|
37863
|
+
const rest = street.slice(at);
|
|
37864
|
+
if (!rest || /[\n\r\u2028\u2029]/.test(rest)) return null;
|
|
37865
|
+
const name = bareName(rest.trim().split(/\s+/).filter(Boolean));
|
|
37866
|
+
if (!name) return null;
|
|
37867
|
+
return { number: m[1], name };
|
|
37868
|
+
}
|
|
37869
|
+
function bareName(tokens) {
|
|
37782
37870
|
if (tokens.length > 1 && DIRECTIONALS.has(tokens[0].toUpperCase())) tokens = tokens.slice(1);
|
|
37783
37871
|
if (tokens.length > 1 && STREET_SUFFIXES.has(tokens[tokens.length - 1].replace(/\.$/, "").toUpperCase())) {
|
|
37784
37872
|
tokens = tokens.slice(0, -1);
|
|
37785
37873
|
}
|
|
37786
|
-
|
|
37787
|
-
if (!name) return null;
|
|
37788
|
-
return { number: m[1], name };
|
|
37874
|
+
return tokens.join(" ").trim();
|
|
37789
37875
|
}
|
|
37790
37876
|
function splitFor(ds, street) {
|
|
37791
37877
|
if (!ds.fields.streetNumber) return null;
|
|
37792
37878
|
return splitStreet(street);
|
|
37793
37879
|
}
|
|
37880
|
+
function plainNeedle(ds, street) {
|
|
37881
|
+
if (!ds.fields.streetNumber) return street;
|
|
37882
|
+
const tokens = street.trim().split(/\s+/).filter(Boolean);
|
|
37883
|
+
const name = bareName(tokens);
|
|
37884
|
+
if (!name || name.split(" ").length >= tokens.length) return street;
|
|
37885
|
+
if (typeWordExposed(tokens, name) && FULL_DIRECTIONS.has(tokens[0].toUpperCase()) && STREET_SUFFIXES.has(name.replace(/\.$/, "").toUpperCase())) {
|
|
37886
|
+
return tokens[0];
|
|
37887
|
+
}
|
|
37888
|
+
if (name.length < 2 || typeWordExposed(tokens, name) || !/[\p{L}\p{N}]/u.test(name)) return street;
|
|
37889
|
+
return name;
|
|
37890
|
+
}
|
|
37891
|
+
function isDirectionOrType(name) {
|
|
37892
|
+
const u = name.replace(/\.$/, "").toUpperCase();
|
|
37893
|
+
return DIRECTIONALS.has(u) || STREET_SUFFIXES.has(u);
|
|
37894
|
+
}
|
|
37895
|
+
function typeWordExposed(tokens, name) {
|
|
37896
|
+
if (tokens.length < 2 || !DIRECTIONALS.has(tokens[0].toUpperCase())) return false;
|
|
37897
|
+
const rest = tokens.slice(1);
|
|
37898
|
+
const typeCameOff = rest.length > 1 && STREET_SUFFIXES.has(rest[rest.length - 1].replace(/\.$/, "").toUpperCase());
|
|
37899
|
+
return !typeCameOff && isDirectionOrType(name);
|
|
37900
|
+
}
|
|
37794
37901
|
function splitAddressStreetName(parts, nameColumn, numberColumn, street) {
|
|
37795
37902
|
if (!parts || !nameColumn || numberColumn) return street;
|
|
37796
37903
|
const at = parts.indexOf(nameColumn);
|
|
@@ -37798,12 +37905,28 @@ function splitAddressStreetName(parts, nameColumn, numberColumn, street) {
|
|
|
37798
37905
|
const before = at;
|
|
37799
37906
|
const after = parts.length - 1 - at;
|
|
37800
37907
|
let tokens = street.trim().split(/\s+/).filter(Boolean);
|
|
37801
|
-
|
|
37802
|
-
|
|
37908
|
+
const typedTokens = tokens.length;
|
|
37909
|
+
let dirOff = false;
|
|
37910
|
+
let typeOff = false;
|
|
37911
|
+
if (before >= 1 && tokens.length > 1 && /^\d+(?!\d)(?:-[A-Za-z0-9]+|[A-Za-z0-9]+)?$/.test(tokens[0]) && !ORDINAL_STREET.test(tokens[0])) {
|
|
37912
|
+
tokens = tokens.slice(1);
|
|
37913
|
+
}
|
|
37914
|
+
const afterNumber = tokens;
|
|
37915
|
+
if (before >= 2 && tokens.length > 1 && DIRECTIONALS.has(tokens[0].toUpperCase())) {
|
|
37916
|
+
tokens = tokens.slice(1);
|
|
37917
|
+
dirOff = true;
|
|
37918
|
+
}
|
|
37803
37919
|
if (after >= 1 && tokens.length > 1 && STREET_SUFFIXES.has(tokens[tokens.length - 1].replace(/\.$/, "").toUpperCase())) {
|
|
37804
37920
|
tokens = tokens.slice(0, -1);
|
|
37921
|
+
typeOff = true;
|
|
37805
37922
|
}
|
|
37806
37923
|
const name = tokens.join(" ");
|
|
37924
|
+
if (dirOff && !typeOff && after >= 1 && FULL_DIRECTIONS.has(afterNumber[0].toUpperCase()) && STREET_SUFFIXES.has(name.replace(/\.$/, "").toUpperCase())) {
|
|
37925
|
+
return afterNumber[0];
|
|
37926
|
+
}
|
|
37927
|
+
if (tokens.length < typedTokens && (name.length < 2 || !typeOff && isDirectionOrType(name) || !/[\p{L}\p{N}]/u.test(name))) {
|
|
37928
|
+
return afterNumber.length < typedTokens && afterNumber.join(" ") !== name ? afterNumber.join(" ") : street;
|
|
37929
|
+
}
|
|
37807
37930
|
return name || street;
|
|
37808
37931
|
}
|
|
37809
37932
|
function unmappedNumberColumn(parts, nameColumn, numberColumn) {
|
|
@@ -37816,6 +37939,7 @@ function numberLiteral(ds, n) {
|
|
|
37816
37939
|
function propertyQueryUrl(ds, street) {
|
|
37817
37940
|
const address = street;
|
|
37818
37941
|
const split = address ? splitFor(ds, address) : null;
|
|
37942
|
+
const needle = address ? plainNeedle(ds, address) : "";
|
|
37819
37943
|
if (ds.type === "socrata") {
|
|
37820
37944
|
const parts = [];
|
|
37821
37945
|
const clauses = [];
|
|
@@ -37824,7 +37948,7 @@ function propertyQueryUrl(ds, street) {
|
|
|
37824
37948
|
`upper(${ds.fields.address}) like upper('%${esc(split.name)}%') AND ${ds.fields.streetNumber} = ${numberLiteral(ds, split.number)}`
|
|
37825
37949
|
);
|
|
37826
37950
|
} else if (address) {
|
|
37827
|
-
clauses.push(`upper(${ds.fields.address}) like upper('%${
|
|
37951
|
+
clauses.push(likeAny(needle, (b) => `upper(${ds.fields.address}) like upper('%${b}%')`, ds.houseNumberSpaceRuns));
|
|
37828
37952
|
}
|
|
37829
37953
|
if (ds.where) clauses.push(`(${ds.where})`);
|
|
37830
37954
|
if (clauses.length) parts.push(`$where=${encodeURIComponent(clauses.join(" AND "))}`);
|
|
@@ -37839,7 +37963,7 @@ function propertyQueryUrl(ds, street) {
|
|
|
37839
37963
|
`${sqlId(ds.fields.address)} ILIKE '%${esc(split.name)}%' AND ${sqlId(ds.fields.streetNumber)} = ${numberLiteral(ds, split.number)}`
|
|
37840
37964
|
);
|
|
37841
37965
|
} else if (address) {
|
|
37842
|
-
clauses.push(`${sqlId(ds.fields.address)} ILIKE '%${
|
|
37966
|
+
clauses.push(likeAny(needle, (b) => `${sqlId(ds.fields.address)} ILIKE '%${b}%'`, ds.houseNumberSpaceRuns));
|
|
37843
37967
|
}
|
|
37844
37968
|
if (ds.where) clauses.push(`(${ds.where})`);
|
|
37845
37969
|
const whereSql = clauses.length ? clauses.join(" AND ") : "1=1";
|
|
@@ -37855,7 +37979,7 @@ function propertyQueryUrl(ds, street) {
|
|
|
37855
37979
|
`${sqlId(ds.fields.address)} ILIKE '%${esc(split.name)}%' AND ${sqlId(ds.fields.streetNumber)} = ${numberLiteral(ds, split.number)}`
|
|
37856
37980
|
);
|
|
37857
37981
|
} else if (address) {
|
|
37858
|
-
clauses.push(`${sqlId(ds.fields.address)} ILIKE '%${
|
|
37982
|
+
clauses.push(likeAny(needle, (b) => `${sqlId(ds.fields.address)} ILIKE '%${b}%'`, ds.houseNumberSpaceRuns));
|
|
37859
37983
|
}
|
|
37860
37984
|
if (ds.where) clauses.push(`(${ds.where})`);
|
|
37861
37985
|
const whereSql = clauses.length ? clauses.join(" AND ") : "1=1";
|
|
@@ -37870,7 +37994,7 @@ function propertyQueryUrl(ds, street) {
|
|
|
37870
37994
|
`UPPER(${ds.fields.address}) LIKE UPPER('%${esc(split.name)}%') AND ${ds.fields.streetNumber} = ${numberLiteral(ds, split.number)}`
|
|
37871
37995
|
);
|
|
37872
37996
|
} else if (address) {
|
|
37873
|
-
arcClauses.push(`UPPER(${ds.fields.address}) LIKE UPPER('%${
|
|
37997
|
+
arcClauses.push(likeAny(needle, (b) => `UPPER(${ds.fields.address}) LIKE UPPER('%${b}%')`, ds.houseNumberSpaceRuns));
|
|
37874
37998
|
}
|
|
37875
37999
|
if (ds.where) arcClauses.push(`(${ds.where})`);
|
|
37876
38000
|
const where = arcClauses.length ? arcClauses.join(" AND ") : "1=1";
|
|
@@ -37903,7 +38027,7 @@ function casesQueryUrl(src, street, statuses = []) {
|
|
|
37903
38027
|
if (lookup !== "address" && street) return null;
|
|
37904
38028
|
if (src.type === "socrata") {
|
|
37905
38029
|
const clauses2 = [];
|
|
37906
|
-
if (street) clauses2.push(`upper(${src.fields.address}) like upper('%${
|
|
38030
|
+
if (street) clauses2.push(likeAny(street, (b) => `upper(${src.fields.address}) like upper('%${b}%')`, src.houseNumberSpaceRuns));
|
|
37907
38031
|
const st2 = statusClause(src, statuses, false);
|
|
37908
38032
|
if (st2) clauses2.push(st2);
|
|
37909
38033
|
if (src.where) clauses2.push(`(${src.where})`);
|
|
@@ -37914,7 +38038,7 @@ function casesQueryUrl(src, street, statuses = []) {
|
|
|
37914
38038
|
return `${src.url}?${parts2.join("&")}`;
|
|
37915
38039
|
}
|
|
37916
38040
|
const clauses = [];
|
|
37917
|
-
if (street) clauses.push(`UPPER(${src.fields.address}) LIKE UPPER('%${
|
|
38041
|
+
if (street) clauses.push(likeAny(street, (b) => `UPPER(${src.fields.address}) LIKE UPPER('%${b}%')`, src.houseNumberSpaceRuns));
|
|
37918
38042
|
const st = statusClause(src, statuses, true);
|
|
37919
38043
|
if (st) clauses.push(st);
|
|
37920
38044
|
if (src.where) clauses.push(`(${src.where})`);
|
|
@@ -38045,12 +38169,17 @@ function cityPath(slug, kind) {
|
|
|
38045
38169
|
}
|
|
38046
38170
|
var SOCRATA_NOTE = " Socrata throttles anonymous callers: for volume, send an X-App-Token header with your own app token.";
|
|
38047
38171
|
var WILDCARD_NOTE = "LIKE wildcards in the street stay active, as on the site: '%' matches any run of characters and '_' exactly one.";
|
|
38172
|
+
function spacesNote(runs) {
|
|
38173
|
+
const n = Math.min(Math.floor(runs ?? 0), HOUSE_GAP_LIMIT);
|
|
38174
|
+
if (!(n >= 1)) return "";
|
|
38175
|
+
return ` The space after a leading house number also matches a run of up to ${n} spaces, or the spacing as typed, and nothing else, as in Orlando's '4274 TATUM ST' ('4274 Tatum St' does not find '4274 OLD TATUM ST'). As before, the number is not anchored on its left: '12 Main' also finds '3312 MAIN'.`;
|
|
38176
|
+
}
|
|
38048
38177
|
function propertyNote(ds) {
|
|
38049
38178
|
const parts = [];
|
|
38050
38179
|
const numberColumn = unmappedNumberColumn(ds.fields.addressParts, ds.fields.address, ds.fields.streetNumber);
|
|
38051
38180
|
if (ds.fields.streetNumber) {
|
|
38052
38181
|
parts.push(
|
|
38053
|
-
`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
|
|
38182
|
+
`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 is matched on ${ds.fields.address} too, with the same trimming (a leading direction and a trailing street type come off: 'N Western Ave' matches 'Western').${spacesNote(ds.houseNumberSpaceRuns)}`
|
|
38054
38183
|
);
|
|
38055
38184
|
} else if (numberColumn) {
|
|
38056
38185
|
parts.push(
|
|
@@ -38058,7 +38187,7 @@ function propertyNote(ds) {
|
|
|
38058
38187
|
);
|
|
38059
38188
|
} else {
|
|
38060
38189
|
parts.push(
|
|
38061
|
-
`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
|
|
38190
|
+
`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.${spacesNote(ds.houseNumberSpaceRuns)}`
|
|
38062
38191
|
);
|
|
38063
38192
|
}
|
|
38064
38193
|
parts.push(WILDCARD_NOTE);
|
|
@@ -38081,7 +38210,7 @@ function casesNote(src) {
|
|
|
38081
38210
|
} else {
|
|
38082
38211
|
const numberColumn = unmappedNumberColumn(src.fields.addressParts, src.fields.address, void 0);
|
|
38083
38212
|
parts.push(
|
|
38084
|
-
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
|
|
38213
|
+
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.${spacesNote(src.houseNumberSpaceRuns)}`
|
|
38085
38214
|
);
|
|
38086
38215
|
parts.push(`Filter by status with ${src.fields.status ?? "the status column"} in (...) using the status_buckets values.`);
|
|
38087
38216
|
parts.push(WILDCARD_NOTE);
|
package/dist/index.d.cts
CHANGED
|
@@ -413,8 +413,10 @@ interface PropertyFieldMap {
|
|
|
413
413
|
addressParts?: string[];
|
|
414
414
|
/**
|
|
415
415
|
* Column holding the street NUMBER on its own. When set, a typed "number
|
|
416
|
-
* name" street is matched as `address LIKE %name% AND streetNumber = number
|
|
417
|
-
*
|
|
416
|
+
* name" street is matched as `address LIKE %name% AND streetNumber = number`,
|
|
417
|
+
* and a name typed without a number is matched on the name alone, with the
|
|
418
|
+
* same leading-direction and trailing-type trimming; unset, the search is the
|
|
419
|
+
* plain substring match.
|
|
418
420
|
*/
|
|
419
421
|
streetNumber?: string;
|
|
420
422
|
recordNumber?: string;
|
|
@@ -450,6 +452,12 @@ interface PropertyDataset {
|
|
|
450
452
|
where?: string;
|
|
451
453
|
/** How the streetNumber column is typed at the source. Default "text". */
|
|
452
454
|
streetNumberType?: "text" | "number";
|
|
455
|
+
/**
|
|
456
|
+
* Set only on a table measured to store a run of spaces after the house number
|
|
457
|
+
* (Orlando): the longest run to try, 1 to 8. The address search then ORs the typed
|
|
458
|
+
* text with 1..N spaces in that gap; unset, it matches the typed spacing exactly.
|
|
459
|
+
*/
|
|
460
|
+
houseNumberSpaceRuns?: number;
|
|
453
461
|
/** The newest value of the date column seen at the last verification (YYYY-MM-DD). */
|
|
454
462
|
latestRecordDate?: string;
|
|
455
463
|
/** One sober line stating the time span the dataset actually covers. */
|
|
@@ -544,6 +552,8 @@ interface CasesSource {
|
|
|
544
552
|
* resolve the address to a parcel id, join through a crosswalk dataset.
|
|
545
553
|
*/
|
|
546
554
|
lookup?: "address" | "location" | "parcel";
|
|
555
|
+
/** As on PropertyDataset: the longest run of spaces after the house number to try, set only where measured. */
|
|
556
|
+
houseNumberSpaceRuns?: number;
|
|
547
557
|
geocoder?: GeocoderConfig;
|
|
548
558
|
resolver?: {
|
|
549
559
|
provider: "nyc-geosearch";
|
|
@@ -643,7 +653,8 @@ interface SplitStreet {
|
|
|
643
653
|
* "1422 N Western Ave" -> { number: "1422", name: "Western" }. Null when the
|
|
644
654
|
* typed street carries no leading house number, which makes the caller fall
|
|
645
655
|
* back to the plain substring match. A unit glued to the number ("1422A",
|
|
646
|
-
* "1422-B") is dropped; the name keeps at least one token.
|
|
656
|
+
* "1422-B") is dropped; the name keeps at least one token. A first token that
|
|
657
|
+
* is an ordinal street name ("88th St", "3rd Ave") is no house number.
|
|
647
658
|
*/
|
|
648
659
|
declare function splitStreet(street: string): SplitStreet | null;
|
|
649
660
|
/**
|
|
@@ -665,7 +676,16 @@ declare function splitStreet(street: string): SplitStreet | null;
|
|
|
665
676
|
* unit or range stays with it: "1422A", "1252-1270"), then one leading
|
|
666
677
|
* directional (N S E W NE NW SE SW, or the full words), then one trailing
|
|
667
678
|
* street type (optional period). The name keeps at least one token, so a lone
|
|
668
|
-
* number or a lone type is sent as typed.
|
|
679
|
+
* number or a lone type is sent as typed. A strip that leaves a lone letter, no
|
|
680
|
+
* letter or digit, or a lone direction or type word with no real type after it
|
|
681
|
+
* ('N St' would become 'St', '100 St' too) is not applied. When a real strip
|
|
682
|
+
* came off, the typed tokens go without the house number (the name column owns
|
|
683
|
+
* none): '100 N St' sends 'N St'. When only the number did, the street goes as
|
|
684
|
+
* typed: '100 %' and '100 E' stay as they are, never '%' or 'E'. A type word with
|
|
685
|
+
* a real type after it is a name: '100 Court St' sends 'Court'. A spelled-out
|
|
686
|
+
* direction with a type on a table with a type column ('2600 South Blvd',
|
|
687
|
+
* '100 North Ave') is the street South or North and sends 'South' or 'North'.
|
|
688
|
+
* Unchanged when the parts give no
|
|
669
689
|
* role: no parts, the name column not among them, or a mapped number column
|
|
670
690
|
* (then the split clause in propertyQueryUrl owns the number).
|
|
671
691
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -413,8 +413,10 @@ interface PropertyFieldMap {
|
|
|
413
413
|
addressParts?: string[];
|
|
414
414
|
/**
|
|
415
415
|
* Column holding the street NUMBER on its own. When set, a typed "number
|
|
416
|
-
* name" street is matched as `address LIKE %name% AND streetNumber = number
|
|
417
|
-
*
|
|
416
|
+
* name" street is matched as `address LIKE %name% AND streetNumber = number`,
|
|
417
|
+
* and a name typed without a number is matched on the name alone, with the
|
|
418
|
+
* same leading-direction and trailing-type trimming; unset, the search is the
|
|
419
|
+
* plain substring match.
|
|
418
420
|
*/
|
|
419
421
|
streetNumber?: string;
|
|
420
422
|
recordNumber?: string;
|
|
@@ -450,6 +452,12 @@ interface PropertyDataset {
|
|
|
450
452
|
where?: string;
|
|
451
453
|
/** How the streetNumber column is typed at the source. Default "text". */
|
|
452
454
|
streetNumberType?: "text" | "number";
|
|
455
|
+
/**
|
|
456
|
+
* Set only on a table measured to store a run of spaces after the house number
|
|
457
|
+
* (Orlando): the longest run to try, 1 to 8. The address search then ORs the typed
|
|
458
|
+
* text with 1..N spaces in that gap; unset, it matches the typed spacing exactly.
|
|
459
|
+
*/
|
|
460
|
+
houseNumberSpaceRuns?: number;
|
|
453
461
|
/** The newest value of the date column seen at the last verification (YYYY-MM-DD). */
|
|
454
462
|
latestRecordDate?: string;
|
|
455
463
|
/** One sober line stating the time span the dataset actually covers. */
|
|
@@ -544,6 +552,8 @@ interface CasesSource {
|
|
|
544
552
|
* resolve the address to a parcel id, join through a crosswalk dataset.
|
|
545
553
|
*/
|
|
546
554
|
lookup?: "address" | "location" | "parcel";
|
|
555
|
+
/** As on PropertyDataset: the longest run of spaces after the house number to try, set only where measured. */
|
|
556
|
+
houseNumberSpaceRuns?: number;
|
|
547
557
|
geocoder?: GeocoderConfig;
|
|
548
558
|
resolver?: {
|
|
549
559
|
provider: "nyc-geosearch";
|
|
@@ -643,7 +653,8 @@ interface SplitStreet {
|
|
|
643
653
|
* "1422 N Western Ave" -> { number: "1422", name: "Western" }. Null when the
|
|
644
654
|
* typed street carries no leading house number, which makes the caller fall
|
|
645
655
|
* back to the plain substring match. A unit glued to the number ("1422A",
|
|
646
|
-
* "1422-B") is dropped; the name keeps at least one token.
|
|
656
|
+
* "1422-B") is dropped; the name keeps at least one token. A first token that
|
|
657
|
+
* is an ordinal street name ("88th St", "3rd Ave") is no house number.
|
|
647
658
|
*/
|
|
648
659
|
declare function splitStreet(street: string): SplitStreet | null;
|
|
649
660
|
/**
|
|
@@ -665,7 +676,16 @@ declare function splitStreet(street: string): SplitStreet | null;
|
|
|
665
676
|
* unit or range stays with it: "1422A", "1252-1270"), then one leading
|
|
666
677
|
* directional (N S E W NE NW SE SW, or the full words), then one trailing
|
|
667
678
|
* street type (optional period). The name keeps at least one token, so a lone
|
|
668
|
-
* number or a lone type is sent as typed.
|
|
679
|
+
* number or a lone type is sent as typed. A strip that leaves a lone letter, no
|
|
680
|
+
* letter or digit, or a lone direction or type word with no real type after it
|
|
681
|
+
* ('N St' would become 'St', '100 St' too) is not applied. When a real strip
|
|
682
|
+
* came off, the typed tokens go without the house number (the name column owns
|
|
683
|
+
* none): '100 N St' sends 'N St'. When only the number did, the street goes as
|
|
684
|
+
* typed: '100 %' and '100 E' stay as they are, never '%' or 'E'. A type word with
|
|
685
|
+
* a real type after it is a name: '100 Court St' sends 'Court'. A spelled-out
|
|
686
|
+
* direction with a type on a table with a type column ('2600 South Blvd',
|
|
687
|
+
* '100 North Ave') is the street South or North and sends 'South' or 'North'.
|
|
688
|
+
* Unchanged when the parts give no
|
|
669
689
|
* role: no parts, the name column not among them, or a mapped number column
|
|
670
690
|
* (then the split clause in propertyQueryUrl owns the number).
|
|
671
691
|
*/
|
package/dist/index.js
CHANGED
|
@@ -26,9 +26,9 @@ var data_default = {
|
|
|
26
26
|
lastUpdated: "2026-10-14",
|
|
27
27
|
totals: {
|
|
28
28
|
states: 51,
|
|
29
|
-
counties:
|
|
30
|
-
endpoints:
|
|
31
|
-
countiesWithEndpoint:
|
|
29
|
+
counties: 395,
|
|
30
|
+
endpoints: 413,
|
|
31
|
+
countiesWithEndpoint: 386,
|
|
32
32
|
countiesUnprobeable: 1
|
|
33
33
|
},
|
|
34
34
|
states: [
|
|
@@ -372,8 +372,8 @@ var data_default = {
|
|
|
372
372
|
slug: "tennessee",
|
|
373
373
|
name: "Tennessee",
|
|
374
374
|
abbrev: "TN",
|
|
375
|
-
countyCount:
|
|
376
|
-
endpointCount:
|
|
375
|
+
countyCount: 5,
|
|
376
|
+
endpointCount: 5,
|
|
377
377
|
populated: true
|
|
378
378
|
},
|
|
379
379
|
{
|
|
@@ -31384,7 +31384,7 @@ var tennessee_default = {
|
|
|
31384
31384
|
stateSlug: "tennessee",
|
|
31385
31385
|
stateName: "Tennessee",
|
|
31386
31386
|
stateAbbrev: "TN",
|
|
31387
|
-
lastUpdated: "2026-10-
|
|
31387
|
+
lastUpdated: "2026-10-14",
|
|
31388
31388
|
counties: [
|
|
31389
31389
|
{
|
|
31390
31390
|
id: "tn-davidson",
|
|
@@ -31617,6 +31617,61 @@ var tennessee_default = {
|
|
|
31617
31617
|
email: null
|
|
31618
31618
|
},
|
|
31619
31619
|
notes: `Sullivan County, Tennessee (county seat Blountville; Kingsport and Bristol) has no county-run public REST parcel layer with owner names. Its parcels are carried on the City of Johnson City's regional ParcelPublishing/TaxParcels MapServer layer 0 (Tax Parcels), which also holds Washington, Carter, Unicoi and neighbouring counties. Filter with COUNTYNAME='Sullivan County' (78,958 of the layer's 183,538 rows on 2026-10-03); the plain value 'Sullivan' matches nothing. About 313 Sullivan parcels (GISLINK starting 082) carry a NULL or different COUNTYNAME and fall outside this scope, roughly 0.4 percent; COUNTY_ID=82 catches them but admits 314 rows from outside the county, so the name scope stays. The owner is OWNER (with OWNER2); the parcel ID is GISLINK (e.g. 082029B A 01600) with ID as the display form (029B A 016.00), and PARID is NULL for Sullivan rows. ADDRESS stores the street name first and the house number last (BRENTWOOD DR 377), so search on a street word: a number-first LIKE ('%377 BRENTWOOD DR%') returns nothing, and only 647 of 78,737 Sullivan addresses start with a digit, so the free tools' address auto-lookup will miss most Sullivan addresses until they retry number-last. The owner mailing address is MAILADDR with MAILCITY, STATE and ZIP. CARDURL links each parcel to the state's TPAD property card. CORS reflects the request Origin (Access-Control-Allow-Origin echoed back, credentials true); a request without an Origin gets no CORS header. maxRecordCount is 2000. LICENCE: RESTRICTED. The ArcGIS item's licence text reads: "Read access only for all city staff. Delivered products are not to be resold by the purchaser for any reason and may not be reproduced without the written permission of the staff of the Johnson City GIS Division." The item and the REST endpoint are public, but the terms restrict resale and reproduction, so the atlas records only the query URL, stores no copy of the layer beyond the short-lived server cache every live query passes through, and serves this county by live query only; Leo reviewed and accepted that exposure on 2026-10-03. The data was last refreshed in October 2025. Sullivan County's own SULLIVAN service on ArcGIS Online has no owner field, and Tennessee publishes no statewide parcel REST layer. Verified live 2026-10-03: owner SMITH returned rows (first SMITH BETTY TRUSTEE, GISLINK 082029B A 01600, BRENTWOOD DR 377, mailing 377 BRENTWOOD DRIVE KINGSPORT).`
|
|
31620
|
+
},
|
|
31621
|
+
{
|
|
31622
|
+
id: "tn-montgomery",
|
|
31623
|
+
state: "TN",
|
|
31624
|
+
stateName: "Tennessee",
|
|
31625
|
+
stateSlug: "tennessee",
|
|
31626
|
+
county: "Montgomery",
|
|
31627
|
+
countySlug: "montgomery-county",
|
|
31628
|
+
countyFips: "47125",
|
|
31629
|
+
hasPublicRest: true,
|
|
31630
|
+
endpoints: [
|
|
31631
|
+
{
|
|
31632
|
+
url: "https://gis.montgomerytn.gov/gisserver/rest/services/PublicParcels/MapServer/0",
|
|
31633
|
+
serviceType: "MapServer",
|
|
31634
|
+
layerIndex: 0,
|
|
31635
|
+
layerName: "PublicParcels",
|
|
31636
|
+
supportsQuery: true,
|
|
31637
|
+
corsEnabled: true,
|
|
31638
|
+
searchFields: [
|
|
31639
|
+
{
|
|
31640
|
+
name: "ParcelNo",
|
|
31641
|
+
label: "Parcel Number (e.g. 066E A 00600 000)",
|
|
31642
|
+
searchable: true
|
|
31643
|
+
},
|
|
31644
|
+
{
|
|
31645
|
+
name: "GISLINK",
|
|
31646
|
+
label: "GIS Link (Parcel ID, e.g. 063066E A 00600)",
|
|
31647
|
+
searchable: true
|
|
31648
|
+
},
|
|
31649
|
+
{
|
|
31650
|
+
name: "PropertyAddress",
|
|
31651
|
+
label: "Situs Address",
|
|
31652
|
+
searchable: true
|
|
31653
|
+
},
|
|
31654
|
+
{
|
|
31655
|
+
name: "PropertyCity",
|
|
31656
|
+
label: "Situs City",
|
|
31657
|
+
searchable: false
|
|
31658
|
+
}
|
|
31659
|
+
],
|
|
31660
|
+
sampleQuery: "https://gis.montgomerytn.gov/gisserver/rest/services/PublicParcels/MapServer/0/query?where=UPPER(PropertyAddress)+LIKE+'%25MAIN%25'&outFields=ParcelNo,GISLINK,PropertyAddress,PropertyCity&returnGeometry=false&f=json",
|
|
31661
|
+
license: "unknown",
|
|
31662
|
+
licenseUrl: "http://montgomerytn.gov/assessor/public-parcels",
|
|
31663
|
+
status: "live",
|
|
31664
|
+
lastVerified: "2026-10-14",
|
|
31665
|
+
verifiedBy: "manual"
|
|
31666
|
+
}
|
|
31667
|
+
],
|
|
31668
|
+
contact: {
|
|
31669
|
+
department: "Montgomery County Assessor of Property",
|
|
31670
|
+
url: "http://montgomerytn.gov/assessor/gis",
|
|
31671
|
+
email: null
|
|
31672
|
+
},
|
|
31673
|
+
notes: "Montgomery County, Tennessee (Clarksville; FIPS 47125). The county's public parcel layer, the one the Assessor of Property's Public Parcels page advertises, is PublicParcels MapServer layer 0 on the county GIS server (gis.montgomerytn.gov, ArcGIS Server): 99,863 rows on 2026-10-14. THIS LAYER PUBLISHES PARCEL IDS AND SITUS ADDRESSES BUT NO OWNER OR MAILING FIELDS, so owner lookups return nothing here; look a parcel up by parcel number, by street address or by point. The parcel id is ParcelNo (e.g. 066E A 00600 000) with GISLINK as the shorter link id (063066E A 00600); the situs is PropertyAddress with PropertyCity. The rows are one per building card, not one per parcel: a parcel with several buildings repeats its parcel id and situs on each row (one sampled parcel returned six), so counts of rows overstate counts of parcels. The layer also carries subdivision, lot and block, deed book and page, property type, taxing district, acreage, assessed and appraised values, building attributes and the last sale. The layer's name is PublicParcels, the wkid is 102736 (Tennessee State Plane, US feet; latestWkid 2274), and outSR=4326 returns longitude and latitude. maxRecordCount is 2000 with pagination. CORS: the server echoes the request Origin in Access-Control-Allow-Origin, so a probe without an Origin header reads it as closed. No license or terms are published on the layer or on the assessor's pages. Verified 2026-10-14: a count of 99,863, a situs LIKE query on MAIN (120 rows) and an outSR=4326 query.",
|
|
31674
|
+
addedAt: "2026-10-14"
|
|
31620
31675
|
}
|
|
31621
31676
|
]
|
|
31622
31677
|
};
|
|
@@ -35897,7 +35952,7 @@ var los_angeles_default = {
|
|
|
35897
35952
|
orderField: "adddttm",
|
|
35898
35953
|
streetNumberType: "text",
|
|
35899
35954
|
latestRecordDate: "2026-10-09",
|
|
35900
|
-
coverage: "Open LADBS code-enforcement cases only, about 29,000, opened 1995 to present. Closed cases are published in a separate dataset (rken-a55j) that this tool does not search. The street is split across columns: with a house number, '139 W 88th St' is matched as 139 on stno and '88th' on stname (one leading direction and one common street type are dropped). Without a house number the
|
|
35955
|
+
coverage: "Open LADBS code-enforcement cases only, about 29,000, opened 1995 to present. Closed cases are published in a separate dataset (rken-a55j) that this tool does not search. The street is split across columns: with a house number, '139 W 88th St' is matched as 139 on stno and '88th' on stname (one leading direction and one common street type are dropped). Without a house number the name alone gets the same trimming, so '88th St' is matched as '88th' on stname.",
|
|
35901
35956
|
recordLabel: "Case",
|
|
35902
35957
|
openedLabel: "Opened",
|
|
35903
35958
|
fields: {
|
|
@@ -35979,7 +36034,7 @@ var fort_worth_default = {
|
|
|
35979
36034
|
orderField: "File_Date",
|
|
35980
36035
|
streetNumberType: "number",
|
|
35981
36036
|
latestRecordDate: "2026-10-13",
|
|
35982
|
-
coverage: "Fort Worth development permits, about 1.6 million records filed 2001 to present. Trade permits (electrical, mechanical, plumbing, backflow) are included alongside building permits. The street is split across columns: with a house number, '8653 Funtier Ct' is matched as 8653 on Addr_No and 'Funtier' on Street_Name (one leading direction and one common street type are dropped). Without a house number the
|
|
36037
|
+
coverage: "Fort Worth development permits, about 1.6 million records filed 2001 to present. Trade permits (electrical, mechanical, plumbing, backflow) are included alongside building permits. The street is split across columns: with a house number, '8653 Funtier Ct' is matched as 8653 on Addr_No and 'Funtier' on Street_Name (one leading direction and one common street type are dropped). Without a house number the name alone gets the same trimming, so 'Funtier Ct' is matched as 'Funtier' on Street_Name.",
|
|
35983
36038
|
recordLabel: "Permit",
|
|
35984
36039
|
openedLabel: "Filed",
|
|
35985
36040
|
fields: {
|
|
@@ -36335,13 +36390,14 @@ var orlando_default = {
|
|
|
36335
36390
|
datasets: {
|
|
36336
36391
|
violations: {
|
|
36337
36392
|
kind: "violations",
|
|
36393
|
+
houseNumberSpaceRuns: 4,
|
|
36338
36394
|
tabLabel: "Code Violations",
|
|
36339
36395
|
type: "socrata",
|
|
36340
36396
|
url: "https://data.cityoforlando.net/resource/k6e8-nw6w.json",
|
|
36341
36397
|
orderField: "casedt",
|
|
36342
36398
|
where: "case_type in ('Housing','Lot','Zoning','Abatement','Commercial')",
|
|
36343
36399
|
latestRecordDate: "2026-09-23",
|
|
36344
|
-
coverage: "Orlando code-enforcement cases of the housing, lot, zoning, abatement and commercial types, about 147,000 opened 1994 to present. Business-tax, ticket, sign and other case types in the same table are left out. Lags the calendar: on 2026-10-14 the newest case in the table was opened 2026-09-23.
|
|
36400
|
+
coverage: "Orlando code-enforcement cases of the housing, lot, zoning, abatement and commercial types, about 147,000 opened 1994 to present. Business-tax, ticket, sign and other case types in the same table are left out. Lags the calendar: on 2026-10-14 the newest case in the table was opened 2026-09-23. 99,433 of the 146,669 case addresses carry two spaces after the house number ('4274 TATUM ST'); the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so '4274 Tatum St' finds the case.",
|
|
36345
36401
|
recordLabel: "Case",
|
|
36346
36402
|
openedLabel: "Opened",
|
|
36347
36403
|
closedLabel: "Resolved",
|
|
@@ -36356,13 +36412,14 @@ var orlando_default = {
|
|
|
36356
36412
|
},
|
|
36357
36413
|
permits: {
|
|
36358
36414
|
kind: "permits",
|
|
36415
|
+
houseNumberSpaceRuns: 4,
|
|
36359
36416
|
tabLabel: "Building Permits",
|
|
36360
36417
|
type: "socrata",
|
|
36361
36418
|
url: "https://data.cityoforlando.net/resource/ryhf-m453.json",
|
|
36362
36419
|
orderField: "processed_date",
|
|
36363
36420
|
where: "processed_date IS NOT NULL",
|
|
36364
36421
|
latestRecordDate: "2026-09-23",
|
|
36365
|
-
coverage: "Orlando permit applications of every type (building, electrical, plumbing, mechanical, engineering, fire and more), about 1.1 million on record. Lags the calendar: on 2026-10-14 the newest application in the table was processed 2026-09-23. About 5% of permit addresses (
|
|
36422
|
+
coverage: "Orlando permit applications of every type (building, electrical, plumbing, mechanical, engineering, fire and more), about 1.1 million on record. Lags the calendar: on 2026-10-14 the newest application in the table was processed 2026-09-23. About 5% of permit addresses (55,657 of 1,105,323) carry two or three spaces after the house number; the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so a typed full address finds them.",
|
|
36366
36423
|
recordLabel: "Permit",
|
|
36367
36424
|
openedLabel: "Processed",
|
|
36368
36425
|
closedLabel: "Finaled",
|
|
@@ -36383,7 +36440,7 @@ var orlando_default = {
|
|
|
36383
36440
|
url: "https://data.cityoforlando.net/",
|
|
36384
36441
|
license: "Public record (City of Orlando)",
|
|
36385
36442
|
portalLabel: "Orlando Open Data (Socrata)",
|
|
36386
|
-
currentRecordsNote: `Code-enforcement cases and permit applications are both published on the City of Orlando's open-data portal. On 2026-10-14 the newest record in both tables was dated 2026-09-23, although the portal reported a same-day refresh. Most code-case addresses carry two spaces after the house number ("4274 TATUM ST")
|
|
36443
|
+
currentRecordsNote: `Code-enforcement cases and permit applications are both published on the City of Orlando's open-data portal. On 2026-10-14 the newest record in both tables was dated 2026-09-23, although the portal reported a same-day refresh. Most code-case addresses carry two spaces after the house number ("4274 TATUM ST"); the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so a full address ("4274 Tatum St") finds them.`
|
|
36387
36444
|
}
|
|
36388
36445
|
};
|
|
36389
36446
|
|
|
@@ -36475,7 +36532,7 @@ var scottsdale_default = {
|
|
|
36475
36532
|
orderField: "DateComplaintReceived",
|
|
36476
36533
|
streetNumberType: "number",
|
|
36477
36534
|
latestRecordDate: "2026-10-09",
|
|
36478
|
-
coverage: "Scottsdale code complaints received since 2021-09, about 18,900 rows. Closed complaints only: open complaints are not published, and every row's status begins with CLOSED. No result means no closed complaint on file, not that the property has no open violation. The street is split across columns: with a house number, '4201 N Hayden Rd' is matched as 4201 on StreetNumber and 'Hayden' on StreetName (one leading direction and one common street type are dropped). Without a house number the
|
|
36535
|
+
coverage: "Scottsdale code complaints received since 2021-09, about 18,900 rows. Closed complaints only: open complaints are not published, and every row's status begins with CLOSED. No result means no closed complaint on file, not that the property has no open violation. The street is split across columns: with a house number, '4201 N Hayden Rd' is matched as 4201 on StreetNumber and 'Hayden' on StreetName (one leading direction and one common street type are dropped). Without a house number the name alone gets the same trimming, so 'Hayden Rd' is matched as 'Hayden' on StreetName.",
|
|
36479
36536
|
recordLabel: "Complaint",
|
|
36480
36537
|
openedLabel: "Received",
|
|
36481
36538
|
closedLabel: "Closed",
|
|
@@ -37578,6 +37635,7 @@ var orlando_default2 = {
|
|
|
37578
37635
|
type: "socrata",
|
|
37579
37636
|
url: "https://data.cityoforlando.net/resource/bhxy-4rji.json",
|
|
37580
37637
|
orderField: "application_date",
|
|
37638
|
+
houseNumberSpaceRuns: 4,
|
|
37581
37639
|
where: "application_description='Zoning' AND application_date IS NOT NULL",
|
|
37582
37640
|
latestRecordDate: "2026-09-18",
|
|
37583
37641
|
fields: {
|
|
@@ -37598,7 +37656,7 @@ var orlando_default2 = {
|
|
|
37598
37656
|
url: "https://data.cityoforlando.net/",
|
|
37599
37657
|
license: "Public record (City of Orlando)",
|
|
37600
37658
|
portalLabel: "Orlando Open Data (Socrata)",
|
|
37601
|
-
currentRecordsNote: "Zoning cases come from the city's Planning Applications dataset, scoped to the Zoning application type (about 450 cases since 2002; the same table also holds annexations, variances and master plans). Existing and proposed zoning appear only inside each case's comments, not as columns, and the status is Open or Closed without saying approved or denied. About half the case addresses carry two spaces after the house number, so a
|
|
37659
|
+
currentRecordsNote: "Zoning cases come from the city's Planning Applications dataset, scoped to the Zoning application type (about 450 cases since 2002; the same table also holds annexations, variances and master plans). Existing and proposed zoning appear only inside each case's comments, not as columns, and the status is Open or Closed without saying approved or denied. About half the case addresses (221 of 407) carry two or three spaces after the house number; the search matches that gap as a run of one to four spaces, or the spacing as typed, and nothing else, so a full address finds them as well as a street name alone does.",
|
|
37602
37660
|
datasetUrl: "https://data.cityoforlando.net/d/bhxy-4rji"
|
|
37603
37661
|
}
|
|
37604
37662
|
};
|
|
@@ -37702,6 +37760,26 @@ var CITY_RECORD_LIMIT = 30;
|
|
|
37702
37760
|
function esc(s) {
|
|
37703
37761
|
return s.replace(/'/g, "''");
|
|
37704
37762
|
}
|
|
37763
|
+
var HOUSE_GAP_LIMIT = 8;
|
|
37764
|
+
var LIKE_GROUP_BUDGET = 3e3;
|
|
37765
|
+
var HOUSE_AND_GAP = /^(\s*(?:\d[A-Za-z0-9]*|\d+-[A-Za-z0-9]+))\s+(?=\S)/;
|
|
37766
|
+
function likeAlternatives(s, maxRun = 0) {
|
|
37767
|
+
const typed = esc(s);
|
|
37768
|
+
const runs = Math.min(Math.floor(maxRun), HOUSE_GAP_LIMIT);
|
|
37769
|
+
if (!(runs >= 1)) return [typed];
|
|
37770
|
+
const m = HOUSE_AND_GAP.exec(s);
|
|
37771
|
+
if (!m || ORDINAL_STREET.test(m[1].trim())) return [typed];
|
|
37772
|
+
const house = esc(m[1]);
|
|
37773
|
+
const rest = esc(s.slice(m[0].length));
|
|
37774
|
+
const out = Array.from({ length: runs }, (_, i) => `${house}${" ".repeat(i + 1)}${rest}`);
|
|
37775
|
+
return out.includes(typed) ? out : [...out, typed];
|
|
37776
|
+
}
|
|
37777
|
+
function likeAny(street, one, maxRun) {
|
|
37778
|
+
const parts = likeAlternatives(street, maxRun).map(one);
|
|
37779
|
+
if (parts.length < 2) return parts[0];
|
|
37780
|
+
const group = `(${parts.join(" OR ")})`;
|
|
37781
|
+
return encodeURIComponent(group).length > LIKE_GROUP_BUDGET ? one(esc(street)) : group;
|
|
37782
|
+
}
|
|
37705
37783
|
function sqlId(id) {
|
|
37706
37784
|
return `"${id.replace(/"/g, '""')}"`;
|
|
37707
37785
|
}
|
|
@@ -37723,6 +37801,7 @@ var DIRECTIONALS = /* @__PURE__ */ new Set([
|
|
|
37723
37801
|
"SOUTHEAST",
|
|
37724
37802
|
"SOUTHWEST"
|
|
37725
37803
|
]);
|
|
37804
|
+
var FULL_DIRECTIONS = /* @__PURE__ */ new Set(["NORTH", "SOUTH", "EAST", "WEST"]);
|
|
37726
37805
|
var STREET_SUFFIXES = /* @__PURE__ */ new Set([
|
|
37727
37806
|
"ST",
|
|
37728
37807
|
"STREET",
|
|
@@ -37773,22 +37852,50 @@ var STREET_SUFFIXES = /* @__PURE__ */ new Set([
|
|
|
37773
37852
|
"FWY",
|
|
37774
37853
|
"FREEWAY"
|
|
37775
37854
|
]);
|
|
37855
|
+
var ORDINAL_STREET = /^\d+(?:ST|ND|RD|TH)$/i;
|
|
37776
37856
|
function splitStreet(street) {
|
|
37777
|
-
const m = /^\s*(\d+)(
|
|
37778
|
-
if (!m) return null;
|
|
37779
|
-
let
|
|
37857
|
+
const m = /^\s*(\d+)(?!\d)(?:-[A-Za-z0-9]+|[A-Za-z0-9]+)?/.exec(street);
|
|
37858
|
+
if (!m || !/\s/.test(street.charAt(m[0].length)) || ORDINAL_STREET.test(street.trim().split(/\s+/)[0])) return null;
|
|
37859
|
+
let at = m[0].length;
|
|
37860
|
+
while (at < street.length && /\s/.test(street.charAt(at))) at++;
|
|
37861
|
+
const rest = street.slice(at);
|
|
37862
|
+
if (!rest || /[\n\r\u2028\u2029]/.test(rest)) return null;
|
|
37863
|
+
const name = bareName(rest.trim().split(/\s+/).filter(Boolean));
|
|
37864
|
+
if (!name) return null;
|
|
37865
|
+
return { number: m[1], name };
|
|
37866
|
+
}
|
|
37867
|
+
function bareName(tokens) {
|
|
37780
37868
|
if (tokens.length > 1 && DIRECTIONALS.has(tokens[0].toUpperCase())) tokens = tokens.slice(1);
|
|
37781
37869
|
if (tokens.length > 1 && STREET_SUFFIXES.has(tokens[tokens.length - 1].replace(/\.$/, "").toUpperCase())) {
|
|
37782
37870
|
tokens = tokens.slice(0, -1);
|
|
37783
37871
|
}
|
|
37784
|
-
|
|
37785
|
-
if (!name) return null;
|
|
37786
|
-
return { number: m[1], name };
|
|
37872
|
+
return tokens.join(" ").trim();
|
|
37787
37873
|
}
|
|
37788
37874
|
function splitFor(ds, street) {
|
|
37789
37875
|
if (!ds.fields.streetNumber) return null;
|
|
37790
37876
|
return splitStreet(street);
|
|
37791
37877
|
}
|
|
37878
|
+
function plainNeedle(ds, street) {
|
|
37879
|
+
if (!ds.fields.streetNumber) return street;
|
|
37880
|
+
const tokens = street.trim().split(/\s+/).filter(Boolean);
|
|
37881
|
+
const name = bareName(tokens);
|
|
37882
|
+
if (!name || name.split(" ").length >= tokens.length) return street;
|
|
37883
|
+
if (typeWordExposed(tokens, name) && FULL_DIRECTIONS.has(tokens[0].toUpperCase()) && STREET_SUFFIXES.has(name.replace(/\.$/, "").toUpperCase())) {
|
|
37884
|
+
return tokens[0];
|
|
37885
|
+
}
|
|
37886
|
+
if (name.length < 2 || typeWordExposed(tokens, name) || !/[\p{L}\p{N}]/u.test(name)) return street;
|
|
37887
|
+
return name;
|
|
37888
|
+
}
|
|
37889
|
+
function isDirectionOrType(name) {
|
|
37890
|
+
const u = name.replace(/\.$/, "").toUpperCase();
|
|
37891
|
+
return DIRECTIONALS.has(u) || STREET_SUFFIXES.has(u);
|
|
37892
|
+
}
|
|
37893
|
+
function typeWordExposed(tokens, name) {
|
|
37894
|
+
if (tokens.length < 2 || !DIRECTIONALS.has(tokens[0].toUpperCase())) return false;
|
|
37895
|
+
const rest = tokens.slice(1);
|
|
37896
|
+
const typeCameOff = rest.length > 1 && STREET_SUFFIXES.has(rest[rest.length - 1].replace(/\.$/, "").toUpperCase());
|
|
37897
|
+
return !typeCameOff && isDirectionOrType(name);
|
|
37898
|
+
}
|
|
37792
37899
|
function splitAddressStreetName(parts, nameColumn, numberColumn, street) {
|
|
37793
37900
|
if (!parts || !nameColumn || numberColumn) return street;
|
|
37794
37901
|
const at = parts.indexOf(nameColumn);
|
|
@@ -37796,12 +37903,28 @@ function splitAddressStreetName(parts, nameColumn, numberColumn, street) {
|
|
|
37796
37903
|
const before = at;
|
|
37797
37904
|
const after = parts.length - 1 - at;
|
|
37798
37905
|
let tokens = street.trim().split(/\s+/).filter(Boolean);
|
|
37799
|
-
|
|
37800
|
-
|
|
37906
|
+
const typedTokens = tokens.length;
|
|
37907
|
+
let dirOff = false;
|
|
37908
|
+
let typeOff = false;
|
|
37909
|
+
if (before >= 1 && tokens.length > 1 && /^\d+(?!\d)(?:-[A-Za-z0-9]+|[A-Za-z0-9]+)?$/.test(tokens[0]) && !ORDINAL_STREET.test(tokens[0])) {
|
|
37910
|
+
tokens = tokens.slice(1);
|
|
37911
|
+
}
|
|
37912
|
+
const afterNumber = tokens;
|
|
37913
|
+
if (before >= 2 && tokens.length > 1 && DIRECTIONALS.has(tokens[0].toUpperCase())) {
|
|
37914
|
+
tokens = tokens.slice(1);
|
|
37915
|
+
dirOff = true;
|
|
37916
|
+
}
|
|
37801
37917
|
if (after >= 1 && tokens.length > 1 && STREET_SUFFIXES.has(tokens[tokens.length - 1].replace(/\.$/, "").toUpperCase())) {
|
|
37802
37918
|
tokens = tokens.slice(0, -1);
|
|
37919
|
+
typeOff = true;
|
|
37803
37920
|
}
|
|
37804
37921
|
const name = tokens.join(" ");
|
|
37922
|
+
if (dirOff && !typeOff && after >= 1 && FULL_DIRECTIONS.has(afterNumber[0].toUpperCase()) && STREET_SUFFIXES.has(name.replace(/\.$/, "").toUpperCase())) {
|
|
37923
|
+
return afterNumber[0];
|
|
37924
|
+
}
|
|
37925
|
+
if (tokens.length < typedTokens && (name.length < 2 || !typeOff && isDirectionOrType(name) || !/[\p{L}\p{N}]/u.test(name))) {
|
|
37926
|
+
return afterNumber.length < typedTokens && afterNumber.join(" ") !== name ? afterNumber.join(" ") : street;
|
|
37927
|
+
}
|
|
37805
37928
|
return name || street;
|
|
37806
37929
|
}
|
|
37807
37930
|
function unmappedNumberColumn(parts, nameColumn, numberColumn) {
|
|
@@ -37814,6 +37937,7 @@ function numberLiteral(ds, n) {
|
|
|
37814
37937
|
function propertyQueryUrl(ds, street) {
|
|
37815
37938
|
const address = street;
|
|
37816
37939
|
const split = address ? splitFor(ds, address) : null;
|
|
37940
|
+
const needle = address ? plainNeedle(ds, address) : "";
|
|
37817
37941
|
if (ds.type === "socrata") {
|
|
37818
37942
|
const parts = [];
|
|
37819
37943
|
const clauses = [];
|
|
@@ -37822,7 +37946,7 @@ function propertyQueryUrl(ds, street) {
|
|
|
37822
37946
|
`upper(${ds.fields.address}) like upper('%${esc(split.name)}%') AND ${ds.fields.streetNumber} = ${numberLiteral(ds, split.number)}`
|
|
37823
37947
|
);
|
|
37824
37948
|
} else if (address) {
|
|
37825
|
-
clauses.push(`upper(${ds.fields.address}) like upper('%${
|
|
37949
|
+
clauses.push(likeAny(needle, (b) => `upper(${ds.fields.address}) like upper('%${b}%')`, ds.houseNumberSpaceRuns));
|
|
37826
37950
|
}
|
|
37827
37951
|
if (ds.where) clauses.push(`(${ds.where})`);
|
|
37828
37952
|
if (clauses.length) parts.push(`$where=${encodeURIComponent(clauses.join(" AND "))}`);
|
|
@@ -37837,7 +37961,7 @@ function propertyQueryUrl(ds, street) {
|
|
|
37837
37961
|
`${sqlId(ds.fields.address)} ILIKE '%${esc(split.name)}%' AND ${sqlId(ds.fields.streetNumber)} = ${numberLiteral(ds, split.number)}`
|
|
37838
37962
|
);
|
|
37839
37963
|
} else if (address) {
|
|
37840
|
-
clauses.push(`${sqlId(ds.fields.address)} ILIKE '%${
|
|
37964
|
+
clauses.push(likeAny(needle, (b) => `${sqlId(ds.fields.address)} ILIKE '%${b}%'`, ds.houseNumberSpaceRuns));
|
|
37841
37965
|
}
|
|
37842
37966
|
if (ds.where) clauses.push(`(${ds.where})`);
|
|
37843
37967
|
const whereSql = clauses.length ? clauses.join(" AND ") : "1=1";
|
|
@@ -37853,7 +37977,7 @@ function propertyQueryUrl(ds, street) {
|
|
|
37853
37977
|
`${sqlId(ds.fields.address)} ILIKE '%${esc(split.name)}%' AND ${sqlId(ds.fields.streetNumber)} = ${numberLiteral(ds, split.number)}`
|
|
37854
37978
|
);
|
|
37855
37979
|
} else if (address) {
|
|
37856
|
-
clauses.push(`${sqlId(ds.fields.address)} ILIKE '%${
|
|
37980
|
+
clauses.push(likeAny(needle, (b) => `${sqlId(ds.fields.address)} ILIKE '%${b}%'`, ds.houseNumberSpaceRuns));
|
|
37857
37981
|
}
|
|
37858
37982
|
if (ds.where) clauses.push(`(${ds.where})`);
|
|
37859
37983
|
const whereSql = clauses.length ? clauses.join(" AND ") : "1=1";
|
|
@@ -37868,7 +37992,7 @@ function propertyQueryUrl(ds, street) {
|
|
|
37868
37992
|
`UPPER(${ds.fields.address}) LIKE UPPER('%${esc(split.name)}%') AND ${ds.fields.streetNumber} = ${numberLiteral(ds, split.number)}`
|
|
37869
37993
|
);
|
|
37870
37994
|
} else if (address) {
|
|
37871
|
-
arcClauses.push(`UPPER(${ds.fields.address}) LIKE UPPER('%${
|
|
37995
|
+
arcClauses.push(likeAny(needle, (b) => `UPPER(${ds.fields.address}) LIKE UPPER('%${b}%')`, ds.houseNumberSpaceRuns));
|
|
37872
37996
|
}
|
|
37873
37997
|
if (ds.where) arcClauses.push(`(${ds.where})`);
|
|
37874
37998
|
const where = arcClauses.length ? arcClauses.join(" AND ") : "1=1";
|
|
@@ -37901,7 +38025,7 @@ function casesQueryUrl(src, street, statuses = []) {
|
|
|
37901
38025
|
if (lookup !== "address" && street) return null;
|
|
37902
38026
|
if (src.type === "socrata") {
|
|
37903
38027
|
const clauses2 = [];
|
|
37904
|
-
if (street) clauses2.push(`upper(${src.fields.address}) like upper('%${
|
|
38028
|
+
if (street) clauses2.push(likeAny(street, (b) => `upper(${src.fields.address}) like upper('%${b}%')`, src.houseNumberSpaceRuns));
|
|
37905
38029
|
const st2 = statusClause(src, statuses, false);
|
|
37906
38030
|
if (st2) clauses2.push(st2);
|
|
37907
38031
|
if (src.where) clauses2.push(`(${src.where})`);
|
|
@@ -37912,7 +38036,7 @@ function casesQueryUrl(src, street, statuses = []) {
|
|
|
37912
38036
|
return `${src.url}?${parts2.join("&")}`;
|
|
37913
38037
|
}
|
|
37914
38038
|
const clauses = [];
|
|
37915
|
-
if (street) clauses.push(`UPPER(${src.fields.address}) LIKE UPPER('%${
|
|
38039
|
+
if (street) clauses.push(likeAny(street, (b) => `UPPER(${src.fields.address}) LIKE UPPER('%${b}%')`, src.houseNumberSpaceRuns));
|
|
37916
38040
|
const st = statusClause(src, statuses, true);
|
|
37917
38041
|
if (st) clauses.push(st);
|
|
37918
38042
|
if (src.where) clauses.push(`(${src.where})`);
|
|
@@ -38043,12 +38167,17 @@ function cityPath(slug, kind) {
|
|
|
38043
38167
|
}
|
|
38044
38168
|
var SOCRATA_NOTE = " Socrata throttles anonymous callers: for volume, send an X-App-Token header with your own app token.";
|
|
38045
38169
|
var WILDCARD_NOTE = "LIKE wildcards in the street stay active, as on the site: '%' matches any run of characters and '_' exactly one.";
|
|
38170
|
+
function spacesNote(runs) {
|
|
38171
|
+
const n = Math.min(Math.floor(runs ?? 0), HOUSE_GAP_LIMIT);
|
|
38172
|
+
if (!(n >= 1)) return "";
|
|
38173
|
+
return ` The space after a leading house number also matches a run of up to ${n} spaces, or the spacing as typed, and nothing else, as in Orlando's '4274 TATUM ST' ('4274 Tatum St' does not find '4274 OLD TATUM ST'). As before, the number is not anchored on its left: '12 Main' also finds '3312 MAIN'.`;
|
|
38174
|
+
}
|
|
38046
38175
|
function propertyNote(ds) {
|
|
38047
38176
|
const parts = [];
|
|
38048
38177
|
const numberColumn = unmappedNumberColumn(ds.fields.addressParts, ds.fields.address, ds.fields.streetNumber);
|
|
38049
38178
|
if (ds.fields.streetNumber) {
|
|
38050
38179
|
parts.push(
|
|
38051
|
-
`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
|
|
38180
|
+
`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 is matched on ${ds.fields.address} too, with the same trimming (a leading direction and a trailing street type come off: 'N Western Ave' matches 'Western').${spacesNote(ds.houseNumberSpaceRuns)}`
|
|
38052
38181
|
);
|
|
38053
38182
|
} else if (numberColumn) {
|
|
38054
38183
|
parts.push(
|
|
@@ -38056,7 +38185,7 @@ function propertyNote(ds) {
|
|
|
38056
38185
|
);
|
|
38057
38186
|
} else {
|
|
38058
38187
|
parts.push(
|
|
38059
|
-
`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
|
|
38188
|
+
`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.${spacesNote(ds.houseNumberSpaceRuns)}`
|
|
38060
38189
|
);
|
|
38061
38190
|
}
|
|
38062
38191
|
parts.push(WILDCARD_NOTE);
|
|
@@ -38079,7 +38208,7 @@ function casesNote(src) {
|
|
|
38079
38208
|
} else {
|
|
38080
38209
|
const numberColumn = unmappedNumberColumn(src.fields.addressParts, src.fields.address, void 0);
|
|
38081
38210
|
parts.push(
|
|
38082
|
-
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
|
|
38211
|
+
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.${spacesNote(src.houseNumberSpaceRuns)}`
|
|
38083
38212
|
);
|
|
38084
38213
|
parts.push(`Filter by status with ${src.fields.status ?? "the status column"} in (...) using the status_buckets values.`);
|
|
38085
38214
|
parts.push(WILDCARD_NOTE);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@urbankitstudio/atlas",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "JS SDK for the UrbanKit County Parcel REST API Atlas:
|
|
3
|
+
"version": "0.6.35",
|
|
4
|
+
"description": "JS SDK for the UrbanKit County Parcel REST API Atlas: 395 counties across all 50 US states and DC, 413 verified public ArcGIS REST endpoints for county parcel data, with searchable field metadata, sample queries and license info, plus verified city code-violation, building-permit and zoning-case datasets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"parcel",
|
|
7
7
|
"arcgis",
|