hove-io / transit_model

Managing transit data with Rust
GNU Affero General Public License v3.0
53 stars 28 forks source link

FR: prefixes dans les id #764

Closed ue71603 closed 3 years ago

ue71603 commented 3 years ago

Pour l'utilisation au dehors de la France. Il devrait être possible t'assigner un prefix, qui on choisi.

example: maintenant: exigé:

pbougue commented 3 years ago

Je n'ai pas compris le besoin, pouvez-vous préciser ?


I don't understand the need. Maybe it is easier to express it in english :gb:?

ue71603 commented 3 years ago

I see, the problem is that XML is removed, when saving. We want to transform https://data.oebb.at/oebb?dataset=uddi:cd36722f-1b9a-11e8-8087-b71b4f81793a

All id have currently the following structure: FR:DayTypeAssignment:000000: As this is data from Austria, we would like to have id that look like that AT:oebb:DayTypeAssignment:000000: or something like that. So the question is: Could the prefix be defined in the command line (e.g. --prefix "AT:oebb" )

woshilapin commented 3 years ago

It would be possible to do that, but it's probably not desirable since gtfs2netexfr is supposed to produce French NeTEx, not Austrian NeTEx (and there might be differences). See my other comments for more details. We could plan for the following options:

Even if these options are possibly good options, we don't really have the resources to do that at the moment. If you're willing to contribute, we can provide guidance and help to bootstrap the design and review the contributions.

ue71603 commented 3 years ago

Thanks for the input and I see your point of view. We will discuss if we go in that direction. If we do, we would contact you again with a concrete pull request. So I think we close it here.