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

rm-hull / next-departures-api / 25082276956
19%
main: 28%

Build:
Build:
LAST BUILD BRANCH: chore/update-go-deps
DEFAULT BRANCH: main
Ran 28 Apr 2026 11:07PM 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:05PM UTC coverage: 18.662% (+0.1%) from 18.549%
25082276956

Pull #5

github

rm-hull
feat: add refdata endpoint for stop types

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)
```
Pull Request #5: feat: add refdata endpoint for stop types

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 25082276956.1 28 Apr 2026 11:07PM UTC 14
18.66
GitHub Action Run
Source Files on build 25082276956
  • Tree
  • List 14
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #5
  • PR Base - main (#25081574682)
  • 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