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

BC navita provider: no PhysicalMode "NA" #224

Closed
anjandev opened this issue Sep 14, 2018 · 21 comments
Closed

BC navita provider: no PhysicalMode "NA" #224

anjandev opened this issue Sep 14, 2018 · 21 comments

Comments

@anjandev
Copy link

anjandev commented Sep 14, 2018

screenshot_transportr_20180912-000845

@anjandev anjandev changed the title BC navita provider: no enum constant na BC navita provider: no enum constant NA Sep 14, 2018
@anjandev
Copy link
Author

I investigated this issue. Turns out that when the route includes the skytrain (the overhead subway in vancouver) Navitia returns the "NA" physical mode.

https://api.navitia.io/v1/coverage/ca-bc/journeys?from=poi%3Aosm%3Anode%3A384252960&to=poi%3Aosm%3Away%3A102254132&

@schildbach
Copy link
Owner

What does "NA" stand for? Maybe "not available" or "not applicable"? If so, then I'd vote for removing the enum value entirely and use "null" instead.

@anjandev
Copy link
Author

anjandev commented Oct 7, 2018

@schildbach in this case, vancouver's skytrain was placed as NA. Should I put it as null? Would that not just remove the physical mode from apps? Ie. When a route requires the skytrain it's just a blank?

@schildbach
Copy link
Owner

Actually I'm not so sure any more. PhysicalMode is used within AbstractNavitiaProvider only, so apps (= users of the library) won't care about it.

@aelkhour once introduced the enum in commit 9f2b3b5, maybe he want to add his view to the discussion?

@anjandev
Copy link
Author

anjandev commented Oct 17, 2018

@schildbach I sent an email to @aelkhour and I have not gotten a response. It has been a week.

What is the purpose of the physical_mode. Like what is it used for? Can we change it to Null?

@schildbach
Copy link
Owner

@prhod This issue about "NA" PhysicalMode in the British Columbia dataset is very similar to #236. What does NA stand for? Is it perhaps an error in the dataset?

@schildbach
Copy link
Owner

I should mention that according to http://doc.navitia.io/#public-transport-objects NA is not valid.

@grote
Copy link
Contributor

grote commented Oct 17, 2018

I think ideally Navitia's data team fixes this at their side and sets the proper physical mode. There should be a QA step in the publishing pipeline that ensures all physical modes are valid.

@schildbach schildbach changed the title BC navita provider: no enum constant NA BC navita provider: no PhysicalMode "NA" Oct 17, 2018
@schildbach
Copy link
Owner

@grote Agreed.

@anjandev
Copy link
Author

@grote @schildbach yes, a QA process would be nice because routes with the skytrain were working before and they just stopped working...

@grote
Copy link
Contributor

grote commented Oct 17, 2018

If there's not answer from @prhod, you can also mail them https://groups.google.com/forum/#!forum/navitia It is a separate organization.

@prhod
Copy link

prhod commented Oct 18, 2018

Hello @grote @schildbach, sorry for the delay of the response !
The purpose of the physical_mode is to provide a fixed list modes in Navitia (or as fixed as possible).
On the other hand, the commercial_mode is not fixed, and can take any value.

We are working on a new data pipeline that will allow us to detect more easily those inconsistencies in physical_modes. Hopefully, you shouldn't have those errors anymore starting mid-2019. In the mean time, please notify us (using the GoogleGroup if possible).

I'll take a look at this NA value and see if we can fix it quickly.
Best regards

@prhod
Copy link

prhod commented Oct 18, 2018

We've just fixed the issue and checked with TransportR.
Best

@schildbach
Copy link
Owner

Thanks a lot for your help.

@schildbach
Copy link
Owner

@prhod Region Finland still has NA PhysicalModes. Can you fix it there, too?

@prhod
Copy link

prhod commented Dec 5, 2018

@schildbach thanks for the notification, I've warned our Data team. It should be fixed in a few days (sorry for the delay).

@prhod
Copy link

prhod commented Dec 6, 2018

@schildbach Region Finland has been fixed. We may have again this issue when GTFS has new route_types. We actually need to fix them manually each time until our new pipeline is in charge. It will take some time to cover all the coverages.

@ialokim
Copy link
Contributor

ialokim commented Jan 31, 2019

@prhod We've spot another one in the Region Portugal. Would be great if you could look after it, too.

@prhod
Copy link

prhod commented Feb 1, 2019

@ialokim thanks for the notice, the issue will be solved ASAP

@prhod
Copy link

prhod commented Feb 13, 2019

@ialokim Portugal has been fixed. We are migrating the coverages (very ?) slowly to our new system. 9 for the moment. We will continue slowly as each coverage has particularities.

@ialokim
Copy link
Contributor

ialokim commented Feb 14, 2019

@prhod Yeah, that's cool, I've already noticed Portugal has been fixed. Great to hear you are already into the process of migrating!

Btw, were there any changes applied on Navitia's side to how the geojson for trips is provided? Or were there any more changes on the Nicaragua provider? I've noticed Transportr to not show the paths following the roads anymore although Navitia's still providing the information. I think this is a client-side issue but if you have a clue, please refer to grote/Transportr/issues/585.

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

No branches or pull requests

5 participants