-
Notifications
You must be signed in to change notification settings - Fork 31
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
don't discard route without ref #150
Conversation
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.
Good use case - a network without refs. I can help to fix the tests.
Please have a look at the couple of comments. Thanks.
I've investigated the Br_Florianopolis failing test: |
If the behaviour of dropping is desired, I would just lower the number of expected lines. |
Tests to fix:
|
It seems that the remaining failing tests are due to a change in the order of creation of the trips, that results in a difference in the trip_id. I think the good fix here is to sort the dict to have a predictable order and update the tests accordingly. |
👍 This would be an improvement for readability and therefor better control over the data. |
to always handle trips in the same order
Thanks @xamanu. |
Looks, generally good. But I would like to have the conversation about dropping or not the checks for duplicated 'ref' in a separate issue/PR instead of mixing it into this one here. Can you please bring the checks back (eventually in the standard creators)? This allows us to proceed here quickly and get this in, while having a more detailed exchange of arguments around the checks, which I think is really necessary. |
94aad3c
to
ee8eb1f
Compare
ok, done. The conversation about the duplicated |
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.
Ready to go. Thank you.
Thanks @xamanu |
Our osm connector heavily rely on route/route_master
ref
tag.Even if this tag is recommended, it can sometimes be missing in OSM without it being an error.
For instance, in Abidjan (Ivory Coast), we have wôrô-wôrô and gbakas that are artisanal transports operated in minibuses or repainted cars, which do not have any number or reference.
The OSM
ref
tag is usually used to set the GTFSroute_short_name
, which is an optional field, so we should not discard all route that do not have aref
.This PR allows to use route/route_master without
ref
tag to create the route.txt file.As it was used as a key to store the routes, I've updated the sorting of the routes in most creators so that the ids remain identical.
I will need your help to fix the last tests 😉