You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the gtfs2gps function are having troubles to check the valid numbers of gtfs$stop_times
>sp_gtfs<-gtfsio::import_gtfs(path="data/gtfs_spo_sptrans_2019-10_fixed_subway.zip")
>sp_gps<-gtfs2gps::filter_by_shape_id(sp_gtfs,"51007") %>% gtfs2gps::gtfs2gps()
# Converting shapes to sf objects# Processing the data# Trip '917H-10-0' has less than two stop_ids. Ignoring it.# Shape '51007' has no departure_time. Ignoring it.# 0 out of 1 shapes (0%) were properly processed.# 0 out of 1 trips (0%) were properly processed.# Warning messages:# 1: In eval(jsub, SDenv, parent.frame()) : NAs introduced by coercion# 2: In eval(jsub, SDenv, parent.frame()) : NAs introduced by coercion# 3: In eval(jsub, SDenv, parent.frame()) : NAs introduced by coercion# 4: In eval(jsub, SDenv, parent.frame()) : NAs introduced by coercion
however, when I check the sp_gtfs$stop_times, it looks like the data is fine
I believe this problem is caused because you are using gtfsio::import_gtfs() to read the GTFS file. If you use gtfs2gps::read_gtfs() it should work. This is because our read_gtfs() does a few transformations on the GTFS feed that are not present in import_gtfs()
Looks like the
gtfs2gps
function are having troubles to check the valid numbers ofgtfs$stop_times
however, when I check the
sp_gtfs$stop_times
, it looks like the data is fineThe text was updated successfully, but these errors were encountered: