Changelog
Source:NEWS.md
transittraj 0.1.2
Release: 3/25/2026
Added examples to all function documentation
-
GTFS helper functions:
New function
get_gtfs_service_dates(): Returns a dataframe of dates and theirservice_ids, built from a GTFS feed’scalendar.txtand/orcalendar_dates.txtfile, depending on how the agency has structured these files. Read more athelp(get_gtfs_service_dates).get_gtfs_trajectory_fun()now works for both methods of constructingcalendar.txtandcalendar_dates.txt(#2), with refactoring through the newget_gtfs_service_dates(). Read more athelp(get_gtfs_trajectory_fun).get_stop_distances()will now return all columns instops.txt(#4)
Plotting functions now include input parameters
feature_legend,veh_legend, andtraj_legendto override whether a layer’s legend will appear on the plot. Read more athelp(plot_trajectory)andhelp(plot_animated_line).
transittraj 0.1.1
Release: 3/13/2026
-
Refactoring of
plot_trajectory(), and redesign of how the function chooses points to interpolate over (#3).If the user specifies a
distance_lim, the function will attempt to use an inverse trajectory function to find appropriate starting and ending timepoints for interpolation; if an inverse function does not exist, the user will be informed that interpolation must occur over the entire trip.Performance is improved substantially, and performance scales well with
plot_tripslength,distance_limrange, andtimestepresolution. Most everyday trajectory plots generate in less than 1 second, and large plots (with hundreds, or even thousands, of trajectories) generate in just a few seconds.Improved error handling in
plot_trajectory(). Error messages should now better inform the user if filtering (i.e.,plot_tripsanddistance_lim) does not contain any data points.
-
Refactoring of
predict().New exported function
get_trip_extremes()for extracting the time and distance range of each trip stored in a trajectory object. Primarily used bypredict()and plotting functions, but may be useful for users. Users can filter the output dataframe to desired trips. Check outhelp(get_trip_extremes)for more information.Improved performance through restructured table operations when pairing new interpolating points with individual trips (#3).
New dedicated internal validating function for
new_timesandnew_distancesto reduce code duplication and improve error messages (#2).