You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename project, update documentation for open source, bump version (#45)
* Update docuementation for open source, bump version
* Rename GTFS-flex-to-GOFS-lite to GTFS-flex-to-GOFS
* Revert "Rename GTFS-flex-to-GOFS-lite to GTFS-flex-to-GOFS"
This reverts commit bd5a92d.
* Rename project to GTFS-flex-to-GOFS
Copy file name to clipboardExpand all lines: CLAUDE.md
+59-16Lines changed: 59 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,34 +4,51 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
This is a Python tool that converts GTFS-Flex (General Transit Feed Specification - Flexible services) data to the GOFS-lite (General On-demand Feed Specification - lite) format. It processes on-demand/flexible transit services data and outputs standardized GOFS files.
7
+
This is a Python tool that converts GTFS-Flex (General Transit Feed Specification - Flexible services) data to the GOFS (General On-demand Feed Specification) format. It processes on-demand/flexible transit services data and outputs standardized GOFS files.
8
8
9
9
## Core Architecture
10
10
11
11
The conversion process follows this flow:
12
-
1. Load GTFS data using `gtfs_loader`
12
+
1. Load GTFS data using `gtfs_loader`
13
13
2. Extract relevant data through `operation_rules.py` which analyzes trip types and creates `GofsData`
14
-
3. Generate individual GOFS files via modules in `gtfs_flex_to_gofs_lite/files/`
15
-
4. Output structured GOFS-lite format files
14
+
3. Generate individual GOFS files via modules in `gtfs_flex_to_gofs/files/`
15
+
4. Output structured GOFS format files
16
16
17
17
### Key Components
18
18
19
-
-**`gofs_lite_converter.py`**: Main conversion orchestrator that coordinates all file generation
19
+
-**`gofs_converter.py`**: Main conversion orchestrator that coordinates all file generation
20
20
-**`gofs_data.py`**: Contains `GofsData` class that tracks extracted IDs and transfers from GTFS-Flex
21
21
-**`files/operation_rules.py`**: Core logic for classifying trip types (regular_service, deviated_service, pure_microtransit, other) and extracting zone-to-zone transfers
22
22
-**`files/` directory**: Individual modules for generating each GOFS file type (zones, calendars, fares, etc.)
23
23
-**`gofs_file.py`**: Base class for GOFS file objects with save functionality
Replace `test_simple_conversion` with any test case name from the `tests/` directory.
65
90
91
+
### Linting
92
+
```bash
93
+
uv run flake8
94
+
```
95
+
96
+
### Deployment
97
+
98
+
Deployment to PyPI is automated via GitHub Actions when the version in `pyproject.toml` is updated on the `main` branch. See `.github/workflows/release.yml` for details.
99
+
66
100
## Dependencies
67
101
68
102
-`py-gtfs-loader`: Custom GTFS loading library from TransitApp
69
103
-`shapely>=2.0.4`: Geometric operations
70
104
-`pytest`: Testing framework
71
105
72
-
## File Structure Notes
106
+
## Testing Structure
107
+
108
+
Test cases use a snapshot-based approach:
109
+
- Each test case lives in `tests/test_*/` directory
A Python tool to convert [GTFS-Flex](https://github.com/MobilityData/gtfs-flex) (General Transit Feed Specification - Flexible services) data to the [GOFS](https://gofs.org) (General On-demand Feed Specification) format.
8
8
9
-
You can use `createTests.sh` to regenerate the test.
9
+
This tool processes on-demand and flexible transit services data from GTFS-Flex feeds and outputs standardized GOFS files for consumption by trip planning applications and mobility platforms.
0 commit comments