Learn R Programming

⚠️There's a newer version (1.7.0) of this package.Take me there.

tidytransit (version 0.5.1)

Read, Validate, Analyze, and Map Files in the General Transit Feed Specification

Description

Read General Transit Feed Specification (GTFS) zipfiles into a list of R dataframes. Perform validation of the data structure against the specification. Analyze the headways and frequencies at routes and stops. Create maps and perform spatial analysis on the routes and stops. Please see the GTFS documentation here for more detail: .

Copy Link

Version

Install

install.packages('tidytransit')

Monthly Downloads

612

Version

0.5.1

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Tom Buckley

Last Published

June 29th, 2019

Functions in tidytransit (0.5.1)

get_stop_geometry

Make Stops into Simple Features Points
get_stop_frequency

Get Stop Frequency
set_trippattern

Add trip pattern data frame to the gtfs object
get_route_geometry

Make Routes into Simple Features Lines
set_servicepattern

Calculate servicepattern for the gtfs_obj
get_feedlist

Get list of all available feeds from transitfeeds API
get_route_frequency

Get Route Frequency
set_api_key

Set TransitFeeds API key for recall
gtfs_as_sf

Add Simple Features for Stops and Routes to GTFS Object
summary.gtfs

GTFS feed summary
service_by_dow

Filter a gtfs calendar dataframe to service ids for specific days of the week.
shapes_as_sfg

return an sf multilinestring with lat and long from gtfs for a route
set_hms_times

Add hms::hms columns to feed
unzip_file

Unzip a file and delete zip
set_date_service_table

Returns all possible date/service_id combinations as a data frame
shapes_for_routes

Get a set of shapes for a set of routes
count_service_trips

Summarise the number of trips per service
travel_times

Calculate shortest travel times from a stop to all reachable stops
planner_buffer

Buffer using common urban planner distances
raptor

Calculate travel times from one stop to all reachable stops
most_frequent_service

Get the most frequent service for a set of trips.
plot.gtfs

Plot GTFS object routes and their frequencies
gtfs_obj

Example GTFS data
has_api_key

Make sure API key string is not empty
route_type_names

Dataframe of route type id's and the names of the types (e.g. "Cable Car")
read_gtfs

Get and validate dataframes of General Transit Feed Specification (GTFS) data.
shape_for_route

Get a set of shapes for a route
shape_route_service

Join the shapes, trips and routes tables together - also checks on some potential errors in the data and warns accordingly
write_gtfs

Writes a gtfs object to a zip file. Calculated tidytransit tables and columns are not exported.
feedlist

Dataframe of source GTFS data from Transitfeeds
get_feed

Download a zipped GTFS feed file from a url
filter_stop_times

Filter a stop_times table for a given date and timespan.
clear_api_key

Clear the API key.
filter_feedlist

Filter a feedlist to include only valid urls (ending in .zip and connect)
get_api_key

Get API key
download_from_url

Download a zipped GTFS feed file from a url
filter_stop_times_by_hour

Filter stop times by hour of the day
filter_stops

Get a set of stops for a given set of service ids and route ids