Repository navigation
Claude/create gtfs sqljs module 011 c up nn k ltuvz d dz xyz fy rm - #7
Merged
chtitux merged 2 commits intoNov 5, 2025
Merged
Conversation
…, add file skipping
BREAKING CHANGES:
- Removed redundant convenience methods that can be replaced with flexible API
- Kept only: getById methods, flexible filter methods (get* with filters), and essential calendar methods
New Features:
- Add agency query methods (getAgencies, getAgencyById)
- Add agencyId filter to routes, trips, and stop times queries
- Add skipFiles option to fromZip to skip importing specific files (tables still created)
- Demo now skips shapes.txt import for faster loading
- Add SQLite database download button in demo
API Changes:
Removed methods (use flexible API instead):
- getAllStops() → getStops()
- searchStopsByName(name) → getStops({ name })
- getStopByCode(code) → getStops({ stopCode: code })[0]
- getAllRoutes() → getRoutes()
- getRoutesByAgency(id) → getRoutes({ agencyId: id })
- getTripsByRoute(id) → getTrips({ routeId: id })
- getTripsByRouteAndDate(id, date) → getTrips({ routeId: id, date })
- getTripsByRouteAndDateAndDirection() → getTrips({ routeId, date, directionId })
- getTripsByDate(date) → getTrips({ date })
- getStopsByTrip(id) → getStops({ tripId: id })
- getStopTimesByStop(id, limit) → getStopTimes({ stopId: id, limit })
- getStopTimesForStopRouteAndDate() → getStopTimes({ stopId, routeId, date, directionId })
Kept methods:
- getAgencyById, getAgencies (new)
- getStopById, getStops
- getRouteById, getRoutes
- getTripById, getTrips
- getStopTimesByTrip, getStopTimes
- All calendar methods (getActiveServiceIds, getCalendarByServiceId, etc.)
All 77 tests pass with updated API usage.
Documentation updates: - Update all query examples to use new flexible filter-based API - Add agency methods documentation (getAgencies, getAgencyById) - Show skipFiles feature in examples - Update "Complete Example" section with new API patterns - Simplify API reference to reflect actual current methods - Remove references to deprecated convenience methods Demo improvements: - Display trip_short_name prominently instead of trip_id - Show trip_id as secondary information when short_name exists - Sort trips by trip_short_name with numeric comparison - Add new CSS styles for trip display hierarchy (.trip-name, .trip-id-secondary) These changes improve documentation clarity and make the demo more user-friendly by showing meaningful trip names.
1 task done
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.
No description provided.