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 Netherlands provider #510

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guushoekman
Copy link

@guushoekman guushoekman commented Jan 7, 2023

I followed the instructions here to add the Netherlands provider (https://navitia.opendatasoft.com/explore/dataset/nl/information/).

I''ll add a few comments where I was unsure about what exactly to add.

Hope this is useful, please let me know if anything needs to be fixed.


@Test
public void nearbyStationsStation() throws Exception {
nearbyStationsStation("stop_point:OAM:2323791");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw some comment in this existing file: https://github.com/schildbach/public-transport-enabler/blob/master/test/de/schildbach/pte/live/FranceNorthEastProviderLiveTest.java#L51

There, it says:

// station to find other stations around
// look in NTFS file for a stop_id (that contains "SP") and apend to "stop_point:" 

In the Netherlands NTFS file, file object_codes.txt I found this line:

stop_point,OAM:2345074,source,2345074

I'm not sure if I used the right formatting here.


@Test
public void queryDeparturesEquivsFalse() throws Exception {
queryDeparturesEquivsFalse("stop_point:OAM:2323791");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I used the same as nearbyStationsStation, like in the FranceNorthEastProvider file


@Test
public void queryDeparturesStopArea() throws Exception {
queryDeparturesStopArea("stop_area:OAM:stoparea:390116");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the NTFS file I used the line

stop_area,OAM:stoparea:390116,source,stoparea:390116

Not sure if I formatted it correctly.

Copy link
Author

@guushoekman guushoekman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have added some comments

@guushoekman
Copy link
Author

Hi @schildbach, do you perhaps have a chance to take a look at this PR?

@schildbach
Copy link
Owner

Thanks for your contribution!

I'm hesitant to merge this, because it is based on Navitia, and support for Navitia is in bad shape in general. We need someone to take the role of maintaining AbstractNavitiaProvider.

As a consequence, I'm about to remove all Navitia based providers. See #402.

@schildbach schildbach added the navitia issue concerning AbstractNavitiaProvider, its implementations or the Navitia.io API label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
navitia issue concerning AbstractNavitiaProvider, its implementations or the Navitia.io API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants