Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add csv-based infrastructure repository #21

Merged

Conversation

munterfi
Copy link
Member

@munterfi munterfi commented Dec 3, 2024

  • InfrastructureRepository implementation for reading a CSV source.
  • Utility to calculate great-circle distance using haversine formula.
  • Adjusted command line application.
  • Add stop_facility_info.csv for test cases.

Supports CSV repos of the following format:

  • stop_facility_info.csv:
stop_id,stop_name,stop_lat,stop_lon
AA,Aarau,47.39143907048071,8.051261316066457
AL,Altdorf UR,46.87608653091944,8.631501919754012
...
  • rolling_stock_info.csv:
category,vehicle_type_id,seats,standing_room,length,max_velocity
IC,FV-Dosto,600,0,200,200
IR,IR-Dosto,350,550,100,160
...

- InfrastructureRepository implementation for reading a CSV source.
- Utility to calculate great-circle distance using haversine formula.
- Adjusted command line application.
- Add stop_facility_info.csv for test cases.
@munterfi munterfi self-assigned this Dec 3, 2024
@munterfi munterfi linked an issue Dec 3, 2024 that may be closed by this pull request
@munterfi munterfi marked this pull request as draft December 3, 2024 20:15
@munterfi munterfi marked this pull request as ready for review December 5, 2024 15:39
@munterfi munterfi merged commit 87425bc into main Dec 5, 2024
3 checks passed
@munterfi munterfi deleted the feature/20-feature-repository-implementations-for-csv-files branch December 5, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Repository Implementations for CSV Files
1 participant