derhuerst/match-gtfs-rt-to-gtfs

matching: option to configure tolerable time differences

Open

#4 aperta il 22 ott 2021

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (1 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (5 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

With some realtime data sources (such as some HAFAS endpoints) and some GTFS datasets, there are minor discrepancies between the realtime data and the plan data, e.g. 1m for a departure of a specific trip.

We could introduce an option to allow such time differences when matching.

  • In the respective SQL queries, the time range would have to include the tolerance.
  • There should be logic in JS that fails if there are >1 matches, because in these cases, the matching can be wrong.

as reported by @hbruch

Guida contributor