croquis 0.1-0
Initial public beta release.
Core features
Introduced the Simplified Speed and Frequency Specification (SSFS), a data structure for simplified transit network creation and editing. SSFS objects contain 8 component tables (agency, routes, stops, itin, stop_seq, span, hsh, calendar) and can be constructed with
ssfs(), validated withvalidate_ssfs(), and printed with a compactprint.ssfs()summary.Added
ssfs_to_gtfs()for converting SSFS objects to valid GTFS feeds, with optionalshape_dist_traveledoutput. Output is compatible with downstream analysis tools such as r5r and gtfstools.Added
gtfs_to_ssfs()for converting existing GTFS feeds into SSFS format for editing. Supports route filtering, date windowing, parallel processing on Unix-like systems, and both OSRM and Valhalla routing servers for shape generation.Added
ssfs_subset()for filtering SSFS objects by route or itinerary, with retain or remove operations.
Shiny application
Launched the Croquis interactive Shiny application via
croquis(). The app provides a complete workflow for transit sketch planning: create or import a transit network, manage stops, draw routes along streets or in free mode, define schedules with headway-based service patterns, and export to GTFS or save as a Croquis project file (.rds).Modules include: Home (project setup, agency management, GTFS/project import), Stops (create, edit, import/export, auto-generate from OSM), Routes (route and itinerary management, stop sequences, network or free drawing mode), Schedule (service calendars, service windows, headways and speeds by hour, speed recalculation), and Export/Save.
Internationalization (i18n) support for English, French, and Spanish across the full interface, with live language switching.
Calibration engine
Added
apply_gtfs_speeds_to_ssfs()for calibrating SSFS speeds using a reference GTFS. Builds a temporal-spatial interstop speed matrix and applies observed speeds by hour and segment to a target SSFS. Falls back to routing-based speed estimates for segments not covered by the reference GTFS.Added
gtfs_to_interstop_matrix()andapply_interstop_matrix_to_ssfs()as lower-level alternatives toapply_gtfs_speeds_to_ssfs().
Service planning utilities
Added
generate_tdrh()for computing trips, distance, and runtime by hour for specified routes or itineraries and services.Added
generate_service_cost()for computing total daily service hours and service kilometers by agency.
GTFS and SSFS utilities
- Added
gtfs_remove_routes()andgtfs_retain_routes()for filtering GTFS objects by route. - Added
ssfs_subset()for filtering SSFS objects by route.
Bundled datasets
- Included 7 sample datasets:
ligne_jaune(STM Yellow Line),stm_metro(full STM metro),mileend(STM Mile-End bus subset),ttc_subway(TTC subway),translink(Translink Vancouver),gtfs_rct(Railway City Transit GTFS), andssfs_rct2(Railway City Transit redesign scenario).
Documentation
- Added a “Produce a GTFS” vignette with a full walkthrough using the Toronto Island Ferries as a worked example.
- Added a “SSFS data structure” vignette that provides an overview of the data structure introduced by this package designed to facilitate rapid network and schedule production and conversion to GTFS.
