Skip to contents

gtfs2gps v3.0-0

CRAN release: 2026-11-26

  • Breaking changes
    • Parallelization: gtfs2gps() no longer uses {future} workers or future::plan(). The compiled step runs in ncores threads (OpenMP): the default is 2 and ncores = Inf uses all threads (data.table::getDTthreads()). parallel and strategy are deprecated and ignored: use ncores = 1 to run sequentially. This also fixes the “globals exceed the maximum allowed size” error (#277).
    • Stops are located with gtfstools::interpolate_shape_dist_traveled(), in stop_sequence order, then placed at the nearest generated point of the shape. Stop placement no longer uses a search radius based on spatial_resolution, so stop patterns are no longer dropped because a stop is far from the shape. dist, cumdist and speed are 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 (cumdist starts at 0; #260); speed, dist, cumdist and cumtime are rounded to 3 decimals; timestamps wrap at midnight (use cumtime for elapsed time); trip_number counts 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() and filter_valid_stop_times(), which warn on every call, and adjust_arrival_departure() and adjust_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.
  • 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 an NA trip_id, and converts a trip_id listed under two shapes once.
    • Fixed NaN cumtime after a stop with a departure but no arrival time; continue = TRUE, compress = TRUE not skipping shapes already saved; and filepath output for shape_ids that aren’t valid file names (now %XX-encoded).
    • read_gtfs() keeps all routes.txt columns and reads feeds without agency_id or route_short_name; write_gtfs() gains compression_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_error warning. 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 times NA with a warning.
    • gtfs2gps() raises classed errors instead of returning NULL when nothing can be converted, and when routes.txt is missing or the output exceeds 2.1 billion rows.
    • gps_as_sfpoints() no longer accepts crs = NA
    • write_gtfs() errors when overwrite = FALSE and the file exists
    • spatial_resolution must be at least 1 metre.

gtfs2gps v2.1-4

CRAN release: 2026-02-02

  • Minor changes
    • ncores = NULL uses parallelly::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. When parallel = FALSE, this argument is ignored. When parallel = 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 gtfs2gps now uses parallel = TRUE by default.
    • Function gtfs2gps now uses gtfstools::frequencies_to_stop_times() to convert. frequency-based GTFS feeds to stop times before processing the data.
  • Minor changes
    • New argument quiet to gtfs2gps()
    • Removed readr, pbapply, lwgeom and magrittr from package dependencies.

gtfs2gps v2.1-0

CRAN release: 2022-08-16

  • Major changes
    • Imports gtfstools package.
  • 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.

gtfs2gps v2.0-3

  • Minor changes
    • Saving units when using argument filepath in gtfs2gps().

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

gtfs2gps v1.3-2

CRAN release: 2020-11-05

  • Major changes
  • Minor changes
    • changes parallel execution to conform new future standards. closes #55
    • Improve time filter in filter_day_period. Closes #89 and 147
    • Improved documentation of spatial_resolution parameter. Closes #116

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_multipoint by sf_point in gps_as_sf() to keep all the data

gtfs2gps v1.0-7

CRAN release: 2020-04-01

  • Minor changes
    • Removing bugs found by CRAN automatic tests

gtfs2gps v1.0-5

CRAN release: 2020-03-16

  • Launch of gtfs2gps v1.0-5 on CRAN on 2020-03-16