-
Notifications
You must be signed in to change notification settings - Fork 28
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
[doc] Update doc on fares V2>V1 #489
Conversation
* A ticket in `tickets.txt` (with an ID) with: | ||
* A `ticket price` with a validity period, and only a euro currency | ||
* One `ticket use` without constrain on transfers, and empty bording and alighting times | ||
* One `ticket use perimeter` with only the specified network (and no exclusion) | ||
* One `ticket use perimeter` with the specified networks, all associated to the same `ticket_use` (and no exclusion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand completely here. Is there multiple ticket_use_perimeter
to define (one for each network
)? If yes, maybe something like this
* One `ticket use perimeter` with the specified networks, all associated to the same `ticket_use` (and no exclusion) | |
* One `ticket use perimeter` for each specified networks, all associated to the same `ticket_use` (and no exclusion) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand completely here. Is there multiple
ticket_use_perimeter
to define (one for eachnetwork
)? If yes, maybe something like this
👍
Cardinalities are not clear (for an OD fare or flat fare).
One ticket
may have
- multiple
ticket prices
(on Y, Y+1 for example) - multiple
ticket use
(although usually only one) - multiple
ticket use perimeter
for oneticket use
Same thing for ticket use restriction
.
It's not a problem for v2 to v1 conversion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When there is only one ticket_use_perimeter with several networks, the same ticket can be used on all networks and do connections between them.
If there is several ticket_use_perimeter each containing a network, the ticket is usable in all networks, but you have to use a new one when having a transfer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When there is only one ticket_use_perimeter with several networks, the same ticket can be used on all networks and do connections between them.
You can only have one object (network here) by ticket_use_perimeter
https://github.com/CanalTP/ntfs-specification/blob/master/ntfs_fare_extension.md#ticket_use_perimeterstxt-optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ArnaudOggy There could be multiple networks in one ticket_use_perimeter
. It's said at least one included line or network
. Am I missing something ?
The use case of a Train+Urbain ticket requires multiple networks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There could be multiple networks in one
ticket_use_perimeter
. It's saidat least one included line or network
. Am I missing something ?
The use case of a Train+Urbain ticket requires multiple networks.
Ok I understand what you mean.
You talk about file (ticket_use_perimeters.txt), I'm talking about objects (and csv lines in the file).
object_type | Text | Required | This field can be either line or network
object_id | Text | Required | This field refers to the ID of the considered line or network.
It's not a list. So one ticket_use
must have n ticket_use_perimeter
(not the file, but instances of the structure ticket_use_perimeters
, so csv lines at final) to do Train+Urbain.
Pull request has been modified.
I think I'm not competent enough to review this one. I'll leave others review and approve (ping @ArnaudOggy @prhod). |
26ac216
to
ea2b1cf
Compare
No description provided.