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

rm-hull / next-departures-api / 25045689118
28%

Build:
DEFAULT BRANCH: main
Ran 28 Apr 2026 09:45AM UTC
Jobs 1
Files 12
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

28 Apr 2026 09:43AM UTC coverage: 7.673%. First build
25045689118

push

github

web-flow
feat: implement NaPTAN stop search REST API (#1)

Initialize project with a Gin-based web server and a CLI tool for
importing National Public Transport Access Nodes (**NaPTAN**) data into
**SQLite**.

This service allows clients to query public transport access points
within specific geographical bounding boxes.

**Key Features:**
- Geographical search via `bbox` query parameters.
- Automated CSV data ingestion from **GOV.UK** sources.
- Integrated **Prometheus** metrics and **Sentry** error tracking.
- Health checks and `pprof` debugging support.
- **Docker** and **GitHub Actions** CI/CD configuration.

```mermaid
sequenceDiagram
    actor User
    participant API as Gin API Server
    participant Repo as SQLite Repository
    participant DB as SQLite DB

    User->>API: GET /search?bbox=min_lat,min_lng...
    API->>Repo: Search(boundingBox)
    Repo->>DB: SELECT * FROM naptan WHERE latitude/longitude BETWEEN ...
    DB-->>Repo: Row data
    Repo-->>API: []SearchResult
    API-->>User: JSON (results + attribution + last_updated)
```

62 of 808 new or added lines in 12 files covered. (7.67%)

62 of 808 relevant lines covered (7.67%)

0.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
211
15.26
internal/repository.go
196
0.0
internal/models/naptan.go
70
0.0
internal/downloader.go
51
0.0
cmd/api_server.go
45
0.0
internal/csv.go
45
0.0
internal/routes/search.go
39
0.0
internal/db.go
35
0.0
cmd/bootstrap.go
35
0.0
main.go
16
0.0
cmd/import.go
3
62.5
internal/metrics/registry.go
Jobs
ID Job ID Ran Files Coverage
1 25045689118.1 28 Apr 2026 09:45AM UTC 12
7.67
GitHub Action Run
Source Files on build 25045689118
  • Tree
  • List 12
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a56fa980 on github
  • Next Build on main (#25072634506)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc