The dev directory now holds source code + compiled binaries only:
~/trips/osm/ OSM PBF extracts (was osm/, 1.4 GB)
~/trips/tilecache/ mock tile cache (was mock/.tilecache)
~/trips/store/mock/ per-trip uploads + chat logs (was mock/store, PII)
~/trips/logs/ server.log
~/trips/stale-osm-build/ stale source/tarball dup of ~/osm-build
(repo osm/build had no binaries; the live OSRM
toolchain + graphs already lived in ~/osm-build)
Code now points at the new locations, all overridable via env:
- mock/server.js: TRIPS_HOME (default ~/trips) for tile cache + store
- setup-osrm.sh / setup-osrm-colombia.sh: OSM_DIR (default ~/trips/osm)
- spatial/compose+import.sh: OSM_DIR (default ~/trips/osm)
- .gitignore: rewritten — no artifact paths remain in-tree
Milestone 1 — live web search:
- mock/server.js: /search + /search-status proxy to the self-hosted
SearXNG (third leg of the 3-source blend; engine endpoint stays
server-side), /spatial + /spatial-status proxy to the spatial service
- mock/app.js: background enrichment of suggestion cards — each
candidate gets a web element (discovery cards + "you might like"
rows) that is checked via SearXNG in the background (one in-flight
query per place, 1 h TTL, failures retry in ~5 min) and APPENDS
sourced facts with provenance URLs; never reorders/rewrites the plan.
New LLM tools: web_search (cite URLs) and poi_near (PostGIS). Status
badge gains 'web' / 'spatial'.
- styles.css: .cc-web live-facts blocks, t-web verified chip
Milestone 2 — PostGIS spatial DB (code complete; needs docker access
to run — see spatial/README.md):
- spatial/: docker-compose (postgis/postgis:16-3.4 + osm2pgsql:16
one-shot importer + spatiald), schema.sql (poi table w/ GIST index,
spatial_extract bookkeeping, refresh_poi()), import.sh for the PBF
extracts in ../osm, spatiald (Go, lib/pq): /health, /near
(ST_DWithin), /nearest (KNN), /corridor (ST_Buffer along a route),
with kind/name/extract/limit filters