MCPcopy Create free account

hub / github.com/Bondify/gtfs_functions / functions

Functions74 in github.com/Bondify/gtfs_functions

↓ 11 callersFunctionextract_file
(file, feed)
gtfs_functions/gtfs_functions.py:1237
↓ 4 callersFunctionlabel_creation
Creates the labels of the time windows. Input: - cutoffs: list of floats or int. Output: - labels: list of strings.
gtfs_functions/aux_functions.py:299
↓ 4 callersFunctionwindow_creation
Adds the time time window and labels to stop_times
gtfs_functions/aux_functions.py:344
↓ 3 callersFunctionadd_frequency
( stop_times, labels, index_="stop_id", col="window", cutoffs=[0, 6, 9, 15, 19, 22, 24], )
gtfs_functions/aux_functions.py:383
↓ 3 callersMethodget_routes_patterns
Compute the different patterns of each route. returns (trips_patterns, routes_patterns)
gtfs_functions/gtfs_functions.py:380
↓ 2 callersFunctioncheck_null
(col)
gtfs_functions/aux_functions.py:417
↓ 2 callersFunctioncode
(gdf)
gtfs_functions/aux_functions.py:443
↓ 2 callersFunctionfix_departure_time
Reassigns departure time to trips that start after the hour 24 for the to fit in a 0-24 hour range Input: - times_to_fix: np.arra
gtfs_functions/aux_functions.py:285
↓ 2 callersMethodparse_calendar
(self)
gtfs_functions/gtfs_functions.py:504
↓ 2 callersFunctionseconds_since_midnight
Transforms a series of time strings of the form "10:00:10" to an integer that represents the seconds since midnight.
gtfs_functions/aux_functions.py:368
↓ 1 callersFunctionadd_all_lines
(line_frequencies, segments_gdf, labels, cutoffs)
gtfs_functions/aux_functions.py:247
↓ 1 callersFunctionadd_all_lines_speed
(data, speeds, segments_gdf)
gtfs_functions/aux_functions.py:173
↓ 1 callersFunctionadd_distance
( stop_times, segments_gdf, seg_cols=[ "shape_id", "route_id", "direction_
gtfs_functions/aux_functions.py:20
↓ 1 callersFunctionadd_free_flow
(speeds, data_complete)
gtfs_functions/aux_functions.py:208
↓ 1 callersFunctionadd_route_name
(data, routes)
gtfs_functions/aux_functions.py:413
↓ 1 callersFunctionadd_runtime
(st)
gtfs_functions/aux_functions.py:9
↓ 1 callersFunctionadd_speed
(speeds)
gtfs_functions/aux_functions.py:61
↓ 1 callersFunctionaggregate_speed
(speeds, segments_gdf)
gtfs_functions/aux_functions.py:96
↓ 1 callersFunctionfix_outliers
(speeds)
gtfs_functions/aux_functions.py:76
↓ 1 callersMethodget_agency
(self)
gtfs_functions/gtfs_functions.py:495
↓ 1 callersFunctionget_all_lines_speed
(speeds, segments_gdf)
gtfs_functions/aux_functions.py:145
↓ 1 callersMethodget_avg_speeds
Calculate the average speed per route, segment and window.
gtfs_functions/gtfs_functions.py:1028
↓ 1 callersMethodget_bbox
(self)
gtfs_functions/gtfs_functions.py:334
↓ 1 callersMethodget_busiest_service_id
Returns the service_id with most trips as a string.
gtfs_functions/gtfs_functions.py:480
↓ 1 callersMethodget_calendar
(self)
gtfs_functions/gtfs_functions.py:498
↓ 1 callersMethodget_calendar_dates
(self)
gtfs_functions/gtfs_functions.py:501
↓ 1 callersMethodget_dates
(self)
gtfs_functions/gtfs_functions.py:358
↓ 1 callersMethodget_dates_service_id
(self)
gtfs_functions/gtfs_functions.py:491
↓ 1 callersMethodget_distance_between_stops
Compared H3 hex bins to DBSCAN clusters in this map: https://studio.foursquare.com/public/8436b10c-4ccc-48a3-a232-e8026f81a117
gtfs_functions/gtfs_functions.py:1158
↓ 1 callersMethodget_files
(self)
gtfs_functions/gtfs_functions.py:308
↓ 1 callersMethodget_lines_freq
Calculates the frequency for each pattern of a route. Returns the bus frequency in minutes/bus broken down by time window.
gtfs_functions/gtfs_functions.py:819
↓ 1 callersMethodget_routes
(self)
gtfs_functions/gtfs_functions.py:693
↓ 1 callersMethodget_segments
Splits each route's shape into stop-stop LineString called segments Returns the segment geometry as well as additional segment information
gtfs_functions/gtfs_functions.py:870
↓ 1 callersMethodget_segments_freq
(self)
gtfs_functions/gtfs_functions.py:1078
↓ 1 callersMethodget_shapes
(self)
gtfs_functions/gtfs_functions.py:767
↓ 1 callersMethodget_speeds
(self)
gtfs_functions/gtfs_functions.py:995
↓ 1 callersMethodget_stop_times
(self)
gtfs_functions/gtfs_functions.py:720
↓ 1 callersMethodget_stops
(self)
gtfs_functions/gtfs_functions.py:704
↓ 1 callersMethodget_stops_freq
Get the stop frequencies. For each stop of each route it returns the bus frequency in minutes/bus broken down by time window.
gtfs_functions/gtfs_functions.py:789
↓ 1 callersMethodget_trips
(self)
gtfs_functions/gtfs_functions.py:601
Method__init__
( self, gtfs_path: str, time_windows: list = [0, 6, 9, 15, 19, 22, 24], busies
gtfs_functions/gtfs_functions.py:46
Methodagency
(self)
gtfs_functions/gtfs_functions.py:165
Methodavg_speeds
(self)
gtfs_functions/gtfs_functions.py:265
Methodbbox
(self)
gtfs_functions/gtfs_functions.py:111
Methodbusiest_date
(self)
gtfs_functions/gtfs_functions.py:96
Methodbusiest_service_id
Returns the service_id with most trips as a string.
gtfs_functions/gtfs_functions.py:155
Methodcalendar
(self)
gtfs_functions/gtfs_functions.py:172
Methodcalendar_dates
(self)
gtfs_functions/gtfs_functions.py:179
Methoddates
(self)
gtfs_functions/gtfs_functions.py:125
Methoddates_service_id
(self)
gtfs_functions/gtfs_functions.py:279
Methoddistance_matrix
(self)
gtfs_functions/gtfs_functions.py:272
Methodend_date
(self)
gtfs_functions/gtfs_functions.py:121
Methodfiles
(self)
gtfs_functions/gtfs_functions.py:104
Methodgeo
(self)
gtfs_functions/gtfs_functions.py:100
Methodget_hash_weekdays
(row)
gtfs_functions/gtfs_functions.py:535
Methodgtfs_path
(self)
gtfs_functions/gtfs_functions.py:88
Methodlines_freq
(self)
gtfs_functions/gtfs_functions.py:237
Functionmap_gdf
( gdf, variable="min_per_trip", colors=["#d13870", "#e895b3", "#55d992", "#3ab071", "#0e8955", "#0
gtfs_functions/gtfs_plots.py:14
Functionnum_to_letters
(num)
gtfs_functions/aux_functions.py:459
Methodroutes
(self)
gtfs_functions/gtfs_functions.py:202
Methodroutes_patterns
Return the patterns of each route and the number of trips defined for each pattern.
gtfs_functions/gtfs_functions.py:131
Methodsegments
(self)
gtfs_functions/gtfs_functions.py:244
Methodsegments_freq
(self)
gtfs_functions/gtfs_functions.py:251
Methodshapes
(self)
gtfs_functions/gtfs_functions.py:223
Methodspeeds
(self)
gtfs_functions/gtfs_functions.py:258
Methodstart_date
(self)
gtfs_functions/gtfs_functions.py:117
Methodstop_times
(self)
gtfs_functions/gtfs_functions.py:216
Methodstops
(self)
gtfs_functions/gtfs_functions.py:209
Methodstops_freq
(self)
gtfs_functions/gtfs_functions.py:230
Functionstyle_function
(feature)
gtfs_functions/gtfs_plots.py:99
Methodtime_windows
(self)
gtfs_functions/gtfs_functions.py:92
Methodtrips
(self)
gtfs_functions/gtfs_functions.py:186
Methodtrips_patterns
Return trips augmented with the patterns they belong to.
gtfs_functions/gtfs_functions.py:143
Methodversion_hash
(x)
gtfs_functions/gtfs_functions.py:408