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

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

Build:
DEFAULT BRANCH: main
Ran 28 Apr 2026 11:26PM UTC
Jobs 1
Files 14
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 11:25PM UTC coverage: 18.662% (+0.1%) from 18.549%
25082875742

push

github

web-flow
feat: add refdata endpoint for stop types (#5)

Introduces a new API route `/v1/next-departures/refdata/stop-types` to
provide metadata about transport stop types.

- Embeds static reference data from `stop-types.json` using `go:embed`.
- Returns a list of codes, descriptions, and categories (e.g., **bus**,
**rail**, **metro**).
- Facilitates client-side filtering and labeling of NaPTAN stops.

```mermaid
sequenceDiagram
    participant Client
    participant API as API Server
    participant Routes
    participant Models

    Client->>API: GET /v1/.../refdata/stop-types
    API->>Routes: StopTypes(context)
    Routes->>Models: Access global StopTypes
    Models-->>Routes: []StopType (unmarshaled from embedded JSON)
    Routes-->>Client: 200 OK (JSON array)
```

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

3 of 11 new or added lines in 3 files covered. (27.27%)

159 of 852 relevant lines covered (18.66%)

0.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
0.0
0.0% cmd/api_server.go
3
0.0
internal/routes/refdata.go
2
47.09
0.32% internal/models/naptan.go
Jobs
ID Job ID Ran Files Coverage
1 25082875742.1 28 Apr 2026 11:26PM UTC 14
18.66
GitHub Action Run
Source Files on build 25082875742
  • Tree
  • List 14
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f9751cc4 on github
  • Prev Build on main (#25081574682)
  • Next Build on main (#25128072786)
  • 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