nicomazz / fastgtfs Goto Github PK
View Code? Open in Web Editor NEWA pure Rust library that provides GTFS parsing, navigation, time table creation, and real-time network simulation.
License: GNU General Public License v3.0
A pure Rust library that provides GTFS parsing, navigation, time table creation, and real-time network simulation.
License: GNU General Public License v3.0
GTFS Time is not defined relative to midnight, but relative to noon - 12h. While that makes "writing" GTFS feeds easier, it makes processing a lot harder.
Expected functionality
As explained in my note about GTFS Time values, with the Europe/Berlin
time zone (+1h standard time to +2 DST shift occurs at 2021-03-28T02:00+01:00
), I expect
departure_time
of 00:30
of a trip running on 2021-03-28
to happen at 1616884200
/2021-03-28T00:30+02:00
, not at 1616887800
/2021-03-28T00:30+01:00
;departure_time
of 06:30
of a trip running on 2021-03-28
to happen at 1616905800
/2021-03-28T06:30+02:00
, not at 1616909400
/2021-03-28T06:30+01:00
.Describe the bug
I'm not familiar with this code base, but it seems that fastgtfs is affected by this problem on those days that the DST <-> standard time switch occurs on.
I'm not sure how that actually manifests in fastgtfs's output, but I assume that wrong delays will be calculated, or that realtime data can't be matched against static data.
I tried to find some places in the code base:
Lines 113 to 127 in f77cd57
Lines 164 to 169 in f77cd57
Lines 182 to 194 in f77cd57
Lines 319 to 326 in f77cd57
Lines 453 to 464 in f77cd57
Lines 479 to 487 in f77cd57
Lines 501 to 518 in f77cd57
fastgtfs/src/realtime_position.rs
Lines 46 to 50 in f77cd57
related: google/transit#15
Hi,
I am not familiar with Rust but I have experience compiling rust to be used for Apple platform development (iOS, macOS etc).
To do this I would like to see some C-Bindings for this awesome project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.