Public Access
1
0

feat: add deep research planning and postal batch runs

Add a dedicated Deep Research view with postal-area preview overlays, batch execution, and bundled map results.

Also add postal dataset import tooling and fix local API networking and research insert issues needed to support the new workflow.
This commit is contained in:
pguerrerox
2026-04-05 18:05:04 +00:00
parent a1ba5ee093
commit cc00a439bf
29 changed files with 1860 additions and 82 deletions
+38
View File
@@ -0,0 +1,38 @@
# Postal Datasets
Leads4less expects local GeoJSON files for deep research postal overlays.
## Supported v1 datasets
- US ZIP/ZCTA polygons
- Canada FSA polygons
## Default file locations
- `db/datasets/postal/us_zcta.geojson`
- `db/datasets/postal/ca_fsa.geojson`
You can override either path with environment variables when running the import script:
- `POSTAL_US_DATASET_PATH`
- `POSTAL_CA_DATASET_PATH`
## Expected feature properties
The importer tries common field names automatically.
For US ZIP/ZCTA:
- `postal_code`
- `zip`
- `zcta`
- `GEOID20`
- `ZCTA5CE20`
- `ZCTA5CE10`
For Canada FSA:
- `postal_code`
- `fsa`
- `CFSAUID`
- `CFSAUID24`
If your dataset uses different property names, update `db/scripts/import-postal-areas.ts`.