Skip to content

Add a bounded Deno and PostGIS nearby-place search - #454

Draft
sdairs wants to merge 2 commits into
mainfrom
codex/nearby-places
Draft

sdairs wants to merge 2 commits into
mainfrom
codex/nearby-places

Conversation

@sdairs

@sdairs sdairs commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Search a fictional directory by longitude, latitude, radius in meters, category and a bounded limit. Deno/Oak and Postgres.js query PostGIS geography with parameterized ST_DWithin, exact spheroidal distance ordering and a stable ID tie-breaker; a small browser form shows sorted cards.

Separate administrator/schema-owner commands install PostGIS, migrate and seed. The application uses a SELECT-only role, verified Cloud CA/hostname and explicit cached Deno permissions, with no automatic runtime DDL.

Validation on 2 October 2026: frozen install, formatting, lint/type checks, 3 domain tests, empty-schema bootstrap plus repeated migration/seed, 7 real Cloud tests and 6 browser/HTTP checks passed. Checks include spatial edge cases/date line, grant denials with the read-only default disabled, TLS negative/positive controls, unforced EXPLAIN, mobile layout and confirmed graceful process restart. CI runs only local checks without Cloud secrets.

The fixture is 12 synthetic rows; its observed index/sort plan is not a scale benchmark. The app has no pagination, authentication or mutation routes and binds to loopback. Companion article and raw acceptance evidence are local and excluded from this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant