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

[Spain] Palma de Mallorca 0 seconds trip duration due to missing timepoint values #753

Open
GerdC opened this issue Jan 4, 2025 · 4 comments

Comments

@GerdC
Copy link

GerdC commented Jan 4, 2025

Bus legs inside Palma de Mallorca have durations of 0 seconds. Example:
Bildschirmfoto 2025-01-04 um 18 53 01

Reason are missing timepoint values a can be seen here for example https://busmaps.com/en/spain/public_transit-line-1-2413739300-2494502523

Bildschirmfoto 2025-01-04 um 18 59 24

Data comes from EMT Palma https://www.emtpalma.cat/ca/inici

Alls stops appear to be used, according their own plan: https://www.emtpalma.cat/ca/linia/-/L/1/portopi-sindicat

Primary gtfs data source: https://www.emtpalma.cat/en/open-data-en

gtfs validation report for example https://busmaps.com/en/spain/Empresa-Municipal/emtpalma

I'll try to nudge them via contact page https://www.emtpalma.cat/ca/atencio-al-client but I'm surely not the first.

As the first and last (and a few intermediate) stops have timepoint values, the timepoints at intermediate stops times might be interpolated.

@GerdC
Copy link
Author

GerdC commented Jan 4, 2025

Appears to be a good time to nudge them https://www.mallorcazeitung.es/mobilitat/2024/09/20/emt-busse-app-probleme-108351746.html
Maybe it's good if I'm not the only one.

@GerdC
Copy link
Author

GerdC commented Jan 4, 2025

I asked them via contact form.

@felixguendling
Copy link
Contributor

I analyzed the problem. They put a space for the stop time which is not "empty" (space between commas , ,).

If exact arrival and departure times (timepoint=1) are not available, estimated or interpolated arrival and departure times (timepoint=0) should be provided.

Regarding timepoint the specification says:

If no timepoint values are provided, all times are considered exact.

When implementing MOTIS, I used this example which uses empty stop times (nothing between commas: ,,):

https://developers.google.com/transit/gtfs/examples/gtfs-feed#stop_timestxt

I will change the check to ignore whitespace (trim before empty check). This will solve this issue. Then MOTIS will interpolate the times.

@felixguendling
Copy link
Contributor

Release v2.0.7 should fix this issue (haven't tried, just added trim before the empty check):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants