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

Add & update Trenitalia RTVTID's and correct SNCF UIC8 check bits #1377

Conversation

jamesparkerttl
Copy link
Contributor

@jamesparkerttl jamesparkerttl commented Nov 25, 2024

Further to recent investigations, I have found some stations that have missing or incorrect ID's.
It seems as though some SNCF stations not in France especially, had incorrect checksum bits set.

These changes have all been confirmed with public API responses.

jamesparkerttl and others added 6 commits November 22, 2024 12:26
* Brescello-Viadana
* Como Camerlata
* Veggia
* Codisotto
* Ceriano Laghetto-Groane
* Pratissolo
* Pm Teatino
* Basel St. Johann
* Bruxelles-Midi
* Barcelona Sants
* Luxembourg
* Bettembourg
Copy link

Stations changed

  • 5893 – Bruxelles-Midi
    • uic8_sncf was changed from 88140012 to 88140010
  • 6625 – Barcelona Sants
    • uic8_sncf was changed from 71718015 to 71718010
  • 8604 – Luxembourg
    • uic8_sncf was changed from 82001008 to 82001000
  • 18844 – Bettembourg
    • uic8_sncf was changed from 82006031 to 82006030
  • 21005 – Brescello-Viadana
    • trenitalia_rtvt_id was added, value is S05964
  • 21023 – Como Camerlata
    • trenitalia_rtvt_id was changed from S09998 to S01308
  • 22206 – Veggia
    • trenitalia_rtvt_id was added, value is S05979
  • 23052 – Codisotto
    • trenitalia_rtvt_id was added, value is S05957
  • 23095 – Ceriano Laghetto-Groane
    • trenord_id was added, value is N00087
  • 66412 – Pratissolo
    • trenitalia_rtvt_id was changed from S80310 to S05985

@ConscritNeuneu
Copy link
Member

ConscritNeuneu commented Nov 25, 2024

The UIC-8 checksum is standardized under TAP-TSI: TAP TSI:ANNEX B.9 STANDARD NUMERICAL CODING OF LOCATIONS. The test (which fails on your changes) implements the specification.

Voyages SNCF is not responsible for coding of stations, it's SNCF Réseau (see the dataset here ) and it's only authoritative in France. Outside of France the codes used by SNCF are just a suggestion.

@jamesparkerttl
Copy link
Contributor Author

Splitting into 2 separate PR's, one for SNCF and one for Trenitalia.

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.

2 participants