-
Notifications
You must be signed in to change notification settings - Fork 26
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
update GTFS parser according to the specifications #398
Conversation
src/utils.rs
Outdated
@@ -69,6 +69,25 @@ where | |||
Ok(i != 0) | |||
} | |||
|
|||
pub fn de_from_u8_with_check<'de, D>(deserializer: D) -> Result<bool, D::Error> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why creating a new function? The function just above is doing exactly the same. You could improve the function just above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created this PR to solve the problem.
patochectp#3
There is a function |
Pull request has been modified.
57ae67d
to
562b630
Compare
src/gtfs/read.rs
Outdated
@@ -87,44 +87,170 @@ impl From<Stop> for objects::StopArea { | |||
if let Some(c) = stop.code { | |||
stop_codes.insert(("gtfs_stop_code".to_string(), c)); | |||
} | |||
let coord: Coord = Coord::from((stop.lon, stop.lat)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or
let coord: Coord = (stop.lon, stop.lat).into();
stop:31,pouet,48.844746,2.372987,0,stoparea:1 | ||
stop:32,pouet,48.844746,2.372987,0,stoparea:1 | ||
stop:33,pouet,48.844746,2.372987,0,stoparea:1 | ||
stop_id,stop_name,stop_lat,stop_lon,location_type,parent_station,level_id |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
76c2dae
to
a75cb17
Compare
Add prefix to Frequency
Add 'gtfs_stop_code' in the specification
Add 'source' object code for 'stop_point'
Force a boolean to be 0 or 1 in deserialization
Manage pathways refactoring
No description provided.