lmeulen / pyraptor

Python implementation of RAPTOR algorithm
MIT License
24 stars 78 forks source link

No filter on date so all trips are evaluated multiple times #4

Closed lmeulen closed 3 years ago

lmeulen commented 3 years ago

Describe the bug A GTFS file conains the timetable for a periode of time. Trips vary over time so the stop times table seems to include duplicate stops. The calendar opbject must be used to filter the gtfs data for a specific date. This prevents multiple occurances of the same trip in the dataset which will be evaluated each time it occurs.

To Reproduce Steps to reproduce the behavior:

  1. Dataset: GTFS NL

Looking at the possible trips from one station to another, the stop times table returns multiple results seeming duplicate (only the trip_id is different). Dropping duplicates on the ritnumber reduces the list to the correct size where each ritnumber is only returned once.

Before executing the algorithm, the timetable must be filtered for a specific date. Another advantage is that the used dataset will be reduced in size by approx 75%.

lmeulen commented 3 years ago

Resolved