@urbankitstudio/atlas 0.6.14 → 0.6.16
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 +12 -2
- package/data/florida.json +67 -67
- package/data/new-jersey.json +122 -42
- package/dist/index.cjs +222 -113
- package/dist/index.d.cts +70 -5
- package/dist/index.d.ts +70 -5
- package/dist/index.js +220 -114
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,7 +67,14 @@ import { findCounty, buildParcelLookupDeepLink } from "@urbankitstudio/atlas";
|
|
|
67
67
|
|
|
68
68
|
const kane = findCounty("illinois", "kane-county")!;
|
|
69
69
|
const link = buildParcelLookupDeepLink(kane.endpoints[0]);
|
|
70
|
-
// → https://urbankitstudio.com/tools/parcel-lookup?endpoint=https%3A%2F%2F
|
|
70
|
+
// → https://urbankitstudio.com/tools/parcel-lookup?endpoint=https%3A%2F%2F...
|
|
71
|
+
|
|
72
|
+
// Pass the county record as well and its primary layer (endpoints[0]), when
|
|
73
|
+
// that layer refuses typed search or several counties share it, links to the
|
|
74
|
+
// county's own page, which scopes it. Any other endpoint keeps the generic link:
|
|
75
|
+
const alachua = findCounty("florida", "alachua-county")!;
|
|
76
|
+
buildParcelLookupDeepLink(alachua.endpoints[0], undefined, alachua);
|
|
77
|
+
// → https://urbankitstudio.com/tools/parcel-lookup/florida/alachua-county
|
|
71
78
|
|
|
72
79
|
For single-address owner lookups in the browser, the free [Owner Lookup](https://urbankitstudio.com/tools/owner-lookup) tool reads the same county layers this package indexes.
|
|
73
80
|
```
|
|
@@ -81,7 +88,10 @@ For single-address owner lookups in the browser, the free [Owner Lookup](https:/
|
|
|
81
88
|
| `findCounty(stateSlug, countySlug)` | `CountyRecord \| undefined` |
|
|
82
89
|
| `findCountyByFips(fips)` | `CountyRecord \| undefined` — match by 5-digit county FIPS |
|
|
83
90
|
| `listCountiesByState(stateSlug)` | `CountyRecord[]` |
|
|
84
|
-
| `buildParcelLookupDeepLink(endpoint)` | URL string into the UrbanKit lookup tool |
|
|
91
|
+
| `buildParcelLookupDeepLink(endpoint, base?, county?)` | URL string into the UrbanKit lookup tool; with `county`, the county route when the endpoint is that county's flagged or shared primary layer |
|
|
92
|
+
| `canonicalLayerUrl(url)` | one key per layer: host + path, scheme, default port, query, fragment, a trailing `/query` and case folded away |
|
|
93
|
+
| `offersAttributeSearch(endpoint)` | `false` when the layer refuses a `where` clause (`attributeSearch: "unsupported"`); query it by geometry instead |
|
|
94
|
+
| `countyOffersAttributeSearch(county)` | `true` when any of the county's layers takes a `where` clause |
|
|
85
95
|
| `slugify(s)`, `countySlugFromName(s)` | string helpers matching the atlas slug convention |
|
|
86
96
|
| `statePath(slug)`, `countyPath(state, county)` | URL paths under `/parcel-atlas` |
|
|
87
97
|
|