Packs / geospatial-public
distance-matrix
compute great-circle (haversine) distances between points and the nearest neighbour of each
Install
logicpacks pack use geospatial-public/distance-matrixget_pack geospatial-public/distance-matrixThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
python-stdlib - Checks: 1 in
outcome/checks.yaml - Code:
distances.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
Compute great-circle (haversine) distances between points and the nearest neighbour of each.
Steps
- Put points in a CSV with WGS84 lat/lon (decimal degrees).
- Run distances.py.
- For road distance or travel time use a routing engine (maps space).
Edge cases
- Lat/lon swapped is the most common bug; sanity-check one known pair.
- Antimeridian crossings work with haversine; planar maths does not.
Don'ts
- Don't use straight-line distance for delivery ETAs.
Routes (free first)
python-stdlib:code/distances.py(no install).