Add Poland rail stations, scraper, and schedule integration#32
Merged
Conversation
- Add PLK_API_KEY binding to env.ts to enable Polish rail data - Implement Poland scraper (poland.ts) to fetch operations, map to Train - Register scraper in apps/api/src/scrapers/index.ts - Log fetch errors in fetch.ts to aid debugging of scraper failures
- Add PolandSchedule interfaces and helper to derive route endpoints - Fetch schedules in parallel with operations and build route map - Pass schedule to mapTrain to populate trainNumber and platform - Use endpoint names as origin or destination when available - Return combined fetch timing for trains and schedules
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
rail-radar | 9402229 | Commit Preview URL Branch Preview URL |
May 14 2026, 07:47 AM |
Station Data Change Report➕ Stations Added (1183)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f36229f4ee
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Enforce PL prefix (PLNN) when parsing Polish station IDs Compute stationNumber earlier in scrapePolandTrains Remove redundant reassignment of stationNumber
- Introduced in-memory cache for Poland raw train data with a 15s TTL. - Added PolandRawData and PolandRawCacheEntry types and rawDataCache map. - Implemented fetchPolandRawData and getCachedPolandRawData helpers. - Refactored scrapePolandTrains to use cached data instead of direct fetch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces full support for Polish railway data, including new station entries, country mapping, carrier identification, and a dedicated scraper with API key handling. It also integrates schedule information and cleans up obsolete data.
Key Changes
Technical Details
fetchWithTimeoutwith proper error handling; removed redundant logging.POLAND_API_KEY.PL-for all new entities.Impact