Learn R Programming

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

tidytransit (version 0.6)

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.6

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Tom Buckley

Last Published

October 14th, 2019

Functions in tidytransit (0.6)

set_servicepattern

Calculate servicepattern for the gtfs_obj
set_hms_times

Add hms::hms columns to feed
has_api_key

Make sure API key string is not empty
shape_route_service

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

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

Example GTFS data
shape_for_route

Get a set of shapes for a route
plot.gtfs

Plot GTFS object routes and their frequencies
most_frequent_service

Get the most frequent service for a set of trips.
planner_buffer

Buffer using common urban planner distances
get_route_geometry

Make Routes into Simple Features Lines
get_stop_frequency

Get Stop Frequency
read_gtfs

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

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

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

Make Stops into Simple Features Points
summary.gtfs

GTFS feed summary
gtfs_as_sf

Add Simple Features for Stops and Routes to GTFS Object
raptor

Calculate travel times from one stop to all reachable stops
shapes_as_sfg

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

Dataframe of source GTFS data from Transitfeeds
set_trippattern

Add trip pattern data frame to the gtfs object
unzip_file

Unzip a file and delete zip
shapes_for_routes

Get a set of shapes for a set of routes
write_gtfs

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

Get Route Frequency
get_feedlist

Get list of all available feeds from transitfeeds API
set_api_key

Set TransitFeeds API key for recall
service_by_dow

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

Download a zipped GTFS feed file from a url
filter_feedlist

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

Summarise the number of trips per service
get_feed

Download a zipped GTFS feed file from a url
clear_api_key

Clear the API key.
get_api_key

Get API key
filter_stop_times

Filter a stop_times table for a given date and timespan.
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