• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

map-services / gps-routes-api / 38819920945
54%

Build:
DEFAULT BRANCH: main
Ran 15 Oct 2026 10:53PM UTC
Jobs 1
Files 18
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Oct 2026 10:51PM UTC coverage: 52.098% (-0.2%) from 52.312%
38819920945

push

github

web-flow
refactor(sqlite): replace Spatialite with R*Tree and Haversine function (#192)

Fixes #191 

Removes the Spatialite extension dependency entirely. All three
Spatialite usage sites are replaced with built-in SQLite features:

1. **bbox filtering** — R*Tree virtual table (routes_rtree) replaces
ST_Within(_geoloc, BuildMbr(...))
2. **radius filtering** — Go-registered haversine_distance() SQL
function (via sqlite3_haversine driver's ConnectHook) replaces
Euclidean-approx queries
3. **_geoloc writes** — _geoloc BLOB column fully dropped from schema;
lat/lng columns + R*Tree triggers handle all spatial indexing

**Key Decisions:**
- Build tags: -tags "sqlite,sqlite_fts5" (no sqlite_math_functions
needed)
- Haversine registered via ConnectHook → conn.RegisterFunc — no
extension or extra build tag
- Default Limit: SearchHits now defaults to 10 when unset (was LIMIT 0 →
no rows)
- JSON field name _geoloc retained in domain models (GeoJSON field name,
not DB column)

All tests pass: CGO_ENABLED=1 go test -tags "sqlite,sqlite_fts5"
-count=1 ./...

41 of 46 new or added lines in 5 files covered. (89.13%)

596 of 1144 relevant lines covered (52.1%)

5.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
72.31
4.19% db/sqlite_connect.go
1
0.0
0.0% main.go
Jobs
ID Job ID Ran Files Coverage
1 38819920945.1 15 Oct 2026 10:53PM UTC 18
52.1
GitHub Action Run
Source Files on build 38819920945
  • Tree
  • List 18
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 659e4453 on github
  • Prev Build on main (#38805603627)
  • Next Build on main (#38823942423)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc