gtfs2gps v3.0-0
CRAN release: 2026-11-26
- Breaking changes
- Parallelization:
gtfs2gps()no longer uses {future} workers orfuture::plan(). The compiled step runs inncoresthreads (OpenMP): the default is 2 andncores = Infuses all threads (data.table::getDTthreads()).parallelandstrategyare deprecated and ignored: usencores = 1to run sequentially. This also fixes the “globals exceed the maximum allowed size” error (#277). - Stops are located with
gtfstools::interpolate_shape_dist_traveled(), instop_sequenceorder, then placed at the nearest generated point of the shape. Stop placement no longer uses a search radius based onspatial_resolution, so stop patterns are no longer dropped because a stop is far from the shape.dist,cumdistandspeedare about 0.11% smaller (spherical distances). snap_method is deprecated and ignored. - Output of
gtfs2gps(): each trip runs from its first to its last timed stop (cumdiststarts at 0; #260);speed,dist,cumdistandcumtimeare rounded to 3 decimals; timestamps wrap at midnight (usecumtimefor elapsed time);trip_numbercounts all trips of a shape. -
filter_single_trip()requires a GTFS object and also filters the other tables; - Deprecated:
gtfs_shapes_as_sf(),gtfs_stops_as_sf(),remove_invalid()andfilter_valid_stop_times(), which warn on every call, andadjust_arrival_departure()andadjust_speed(), which warn once per session. Use the {gtfstools} equivalents named in their warnings: we strongly recommend fixing and editing GTFS data with {gtfstools} before processing them with gtfs2gps.
- Parallelization:
- Major changes
-
gtfs2gps()is much faster and uses less memory: compared with v2.1-4, about 9× faster on the poa feed, 500× on São Paulo, and 1,000× on a full Fortaleza feed (13M points: 95 min → 6 s). All shapes are converted in one pass in C++ ({cpp11} replaces {Rcpp}). - Fixed shapes shared by several routes or stop patterns: all their trips are converted, with times attached to the right stops (e.g. 348 instead of 170 trips in the Berlin feed).
- Requires gtfstools >= 2.0.1
-
- Minor changes
-
gtfs2gps()drops duplicated rows and unused ids, ignores trips with anNAtrip_id, and converts atrip_idlisted under two shapes once. - Fixed
NaNcumtimeafter a stop with a departure but no arrival time;continue = TRUE, compress = TRUEnot skipping shapes already saved; andfilepathoutput forshape_ids that aren’t valid file names (now%XX-encoded). -
read_gtfs()keeps allroutes.txtcolumns and reads feeds withoutagency_idorroute_short_name;write_gtfs()gainscompression_level;adjust_arrival_departure()no longer modifies its input or writes negative times. - Messages, warnings and errors use {cli}, most with a class; failed shapes are reported in a
gtfs2gps_shape_errorwarning. Loading the package no longer changes data.table’s options or threads. - Dependencies: adds {cli} and {rlang}; drops {furrr}, {future}, {parallelly}, {progressr} and {Rcpp}.
- No departure is created at a frequency’s
end_time, and malformed timesNAwith a warning. -
gtfs2gps()raises classed errors instead of returningNULLwhen nothing can be converted, and whenroutes.txtis missing or the output exceeds 2.1 billion rows. -
gps_as_sfpoints()no longer acceptscrs = NA -
write_gtfs()errors whenoverwrite = FALSEand the file exists -
spatial_resolutionmust be at least 1 metre.
-
gtfs2gps v2.1-4
CRAN release: 2026-02-02
- Minor changes
-
ncores = NULLusesparallelly::availableCores(omit = 1), and {parallelly} was added to Imports. - Requires R >= 4.1.0.
- The startup message no longer mentions the removed filter functions.
- Test fix for testthat 3.3.0.
-
gtfs2gps v2.1-2
CRAN release: 2024-10-08
- Minor changes
- puts package back on CRAN
- remove {magrittr} from Suggests
- Clarifies in the documentation the default behavior of the parameter
ncores. closes #271. Whenparallel = FALSE, this argument is ignored. Whenparallel = TRUE, then by default the function uses all available cores minus one.
gtfs2gps v2.1-1
CRAN release: 2023-04-28
- Major changes
- Filter functions were removed from the package because gtfstools already implements them
- Function
gtfs2gpsnow usesparallel = TRUEby default. - Function
gtfs2gpsnow usesgtfstools::frequencies_to_stop_times()to convert. frequency-based GTFS feeds to stop times before processing the data.
- Minor changes
- New argument
quiettogtfs2gps() - Removed
readr,pbapply,lwgeomandmagrittrfrom package dependencies.
- New argument
gtfs2gps v2.1-0
CRAN release: 2022-08-16
- Major changes
- Imports
gtfstoolspackage.
- Imports
- Minor changes
- The function
adjust_speed()now does not change very low speed (1.000000e-12 [km/h]) because these values indicate a situation of a stopped vehicle. Closed 249.
- The function
gtfs2gps v2.0-3
- Minor changes
- Saving units when using argument
filepathingtfs2gps().
- Saving units when using argument
gtfs2gps v2.0-2
CRAN release: 2022-03-10
- Minor changes
- Fixing CRAN error and warning related to the vignette.
-
gtfs2gps()now prints a message alerting if there are any trips with negative speed values in the output. Closes #172. - Fixing small bugs in the output of gtfs2gps().
gtfs2gps v2.0-0
CRAN release: 2022-02-22
- Major changes
-
gtfs2gps()now creates two points for a stop when arrival and departure exist. Speed and travel time are now calculated considering both departure_ and arrival_time columns. - The travel statistics in the output table (speed, dist, cumdist, cumtime) for a given point are now calculated in relation to the previous point. More details in the documentation of the
gtfs2gps()function. - Names of the output columns of gtfs2gps() were updated
- New function
adjust_arrival_departure()to allow users set a minimum time for dis/embarking times at each stop. - New function
adjust_speed()to fix outlier speeds and replace missing speed values with a speed set by the user or the average speed of the system. The timestamp values are updated accordingly. - Fixing several small errors in the output of gtfs2gps(), what breaks compatibility with previous versions of the gtfs2gps package.
-
gtfs2gps v1.5-4
CRAN release: 2021-09-06
- Major changes
- Fixed CRAN bugs
- Fixed small bug that prevented creating departure times correctly
gtfs2gps v1.5
- Major changes
- Fixed the update of trip_number attribute. This affects the output of
gps_as_sflinestring(). Closes #189. - Imports the
gtfsiopackage, used in theread_gtfs()andwrite_gtfs()functions. Closes #191. - New parameter
snap_methodadded togtfs2gps().
- Fixed the update of trip_number attribute. This affects the output of
- Minor changes
- Function
filter_single_trip()now also filters thestop_timestable. Closes #195. - Change default
spatial_resolutionofgtfs2gps()from 50m to 100m. Closes #202.
- Function
gtfs2gps v1.3-2
CRAN release: 2020-11-05
- Major changes
- New function to merge GTFS feeds. Closes #34
- New pkgdown website. https://ipea.github.io/gtfs2gps/ . Closes #146
- Distance of 1st point of GPS trip now start with distance zero. Closes #136
- Minor changes
gtfs2gps v1.3-0
CRAN release: 2020-09-15
- Major changes
- Use progress bar from progressr. Closes #142
- Handling units of measurement
- Speeding up some algorithms
gtfs2gps v1.2-1
CRAN release: 2020-06-12
- Minor changes
- Allowing to read gtfs files without calendar/agency
- New verifications to create a better feedback for the user
gtfs2gps v1.2-0
CRAN release: 2020-05-28
- Major changes
- Processing mixed detailed and frequency-based GTFS files
- Small changes in
gps_as_sflinestring()due to new GDAL - Function to simplify shapes
gtfs2gps v1.1-0
CRAN release: 2020-04-12
- Major changes
- New function append_height(), to create height column to GPS data
- Update related to the newest versions of lwgeom and sf (#112)
- Replacing
sf_multipointbysf_pointingps_as_sf()to keep all the data
