fasttrips.TAZ
- class fasttrips.TAZ(output_dir, gtfs, today, stops, transfers, routes)[source]
TAZ class.
One instance represents all of the Transportation Analysis Zones as well as their access links and egress links.
Todo
This is really about the access and egress links; perhaps it should be renamed?
Stores access link information in
TAZ.walk_access, andTAZ.drive_access, both instances ofpandas.DataFrame.- __init__(output_dir, gtfs, today, stops, transfers, routes)[source]
Constructor. Reads the TAZ data from the input files in input_archive.
Methods
__init__(output_dir, gtfs, today, stops, ...)Constructor.
add_distance(links_df, dist_col)Sets distance column value for access and egress links.
merge_access_egress()Merges walk and drive access and egress dataframes for C++ extension :return:
warn_on_stops_without_walk_access(stops)Do any stops lack any walk access?
write_access_egress_for_extension(output_dir)Write the access and egress links to a single output file for the C++ extension to read.
Attributes
ACCESS_EGRESS_MODESaccess and egress modes.
ACCESS_MODE_NUMSAccess mode number list, in order of ACCESS_EGRESS_MODES
BIKE_MODE_NUMSBike mode number list
DAP_COLUMN_CAPACITYfasttrips DAP column name: Capacity (number of parking spaces)
DAP_COLUMN_DROP_OFFfasttrips DAP column name: Drop-Off.
DAP_COLUMN_HOURLY_COSTfasttrips DAP column name: Hourly Cost in cents.
DAP_COLUMN_LOT_IDfasttrips DAP column name: Lot ID.
DAP_COLUMN_LOT_LATITUDEfasttrips DAP column name: Lot Latitude (WGS 84)
DAP_COLUMN_LOT_LONGITUDEfasttrips DAP column name: Lot Longitude (WGS 84)
DAP_COLUMN_MAXIMUM_COSTfasttrips DAP column name: Maximum Daily Cost in cents.
DAP_COLUMN_NAMEfasttrips DAP column name: Name of the Lot.
DAP_COLUMN_TYPEfasttrips DAP column name: Type
DRIVE_ACCESS_COLUMN_AUTO_CAPACITYfasttrips Drive access links column name: Auto Capacity, vehicles per hour per mile.
DRIVE_ACCESS_COLUMN_COSTDrive access links column name: Drive cost in cents (integer)
DRIVE_ACCESS_COLUMN_DIRECTIONDrive access links column name: Direction ('access' or 'egress')
DRIVE_ACCESS_COLUMN_DISTANCEDrive access links column name: Drive distance
DRIVE_ACCESS_COLUMN_DRIVE_DISTANCEfasttrips These are the original attributes but renamed to be clear they are the drive component (as opposed to the walk)
DRIVE_ACCESS_COLUMN_DRIVE_TRAVEL_TIMEDRIVE_ACCESS_COLUMN_DRIVE_TRAVEL_TIME_MINDrive access links column name: Driving time in minutes between TAZ and lot (float)
DRIVE_ACCESS_COLUMN_ELEVATION_GAINfasttrips Drive access links column name: Elevation Gain, feet gained along link.
DRIVE_ACCESS_COLUMN_END_TIMEDrive access links column name: End time (e.g.
DRIVE_ACCESS_COLUMN_END_TIME_MINDrive access links column name: End time (e.g.
DRIVE_ACCESS_COLUMN_INDIRECTNESSfasttrips Drive access links column name: Indirectness, ratio of Manhattan distance to crow-fly distance.
DRIVE_ACCESS_COLUMN_LOT_IDDrive access links column name: Stop Identifier.
DRIVE_ACCESS_COLUMN_POPULATION_DENSITYfasttrips Drive access links column name: Population Density, people per square mile.
DRIVE_ACCESS_COLUMN_RETAIL_DENSITYfasttrips Drive access links column name: Retail Density, employees per square mile.
DRIVE_ACCESS_COLUMN_START_TIMEDrive access links column name: Start time (e.g.
DRIVE_ACCESS_COLUMN_START_TIME_MINDrive access links column name: Start time (e.g.
DRIVE_ACCESS_COLUMN_STOPfasttrips Drive access links column name: Stop Numerical Identifier.
DRIVE_ACCESS_COLUMN_STOP_NUMfasttrips Drive access links column name: Stop Numerical Identifier.
DRIVE_ACCESS_COLUMN_SUPPLY_MODEfasttrips Drive access links column name: Supply mode.
DRIVE_ACCESS_COLUMN_SUPPLY_MODE_NUMDrive access links column name: Supply mode number.
DRIVE_ACCESS_COLUMN_TAZDrive access links column name: TAZ Identifier.
DRIVE_ACCESS_COLUMN_TAZ_NUMfasttrips Drive access links column name: TAZ Numerical Identifier.
DRIVE_ACCESS_COLUMN_TRAVEL_TIMEDrive access links column name: Driving time in minutes between TAZ and lot (TimeDelta)
DRIVE_ACCESS_COLUMN_WALK_DISTANCEfasttrips Drive access links column name: Walk distance from lot to transit.
DRIVE_ACCESS_COLUMN_WALK_TIMEfasttrips Drive access links column name: Walk time from lot to transit.
DRIVE_ACCESS_COLUMN_WALK_TIME_MINfasttrips Drive access links column name: Walk time from lot to transit.
DRIVE_MODE_NUMSDrive mode number list
EGRESS_MODE_NUMSEgress mode number list, in order of ACCESS_EGRESS_MODES
INPUT_DAP_FILEFile with fasttrips drive access points information.
INPUT_DRIVE_ACCESS_FILEFile with fasttrips drive access information.
INPUT_WALK_ACCESS_FILEFile with fasttrips walk access information.
MODE_ACCESS_BIKE_OWNAccess mode: Bike (own)
MODE_ACCESS_BIKE_SHAREAccess mode: Bike (share)
MODE_ACCESS_KNRAccess mode: Drive to KNR
MODE_ACCESS_PNRAccess mode: Drive to PNR
MODE_ACCESS_WALKAccess mode: Walk
MODE_COLUMN_MODEmode column
MODE_COLUMN_MODE_NUMmode number
MODE_EGRESS_BIKE_OWNEgress mode: Bike (own)
MODE_EGRESS_BIKE_SHAREEgress mode: Bike (share)
MODE_EGRESS_KNREgress mode: Drive to KNR
MODE_EGRESS_PNREgress mode: Drive to PNR
MODE_EGRESS_WALKEgress mode: Walk
OUTPUT_ACCESS_EGRESS_FILEFile with access/egress links for C++ extension It's easier to pass it via a file rather than through the initialize_fasttrips_extension() because of the strings involved, I think.
WALK_ACCESS_COLUMN_ACC_COSTWalk acess cost column name: Link generic cost for accessing stop from TAZ.
WALK_ACCESS_COLUMN_AUTO_CAPACITYfasttrips Walk access links column name: Auto Capacity, vehicles per hour per mile.
WALK_ACCESS_COLUMN_DIRECTIONWalk access links column name: Direction (access or egress)
WALK_ACCESS_COLUMN_DISTWalk access links column name: Walk Distance
WALK_ACCESS_COLUMN_EGR_COSTWalk acess cost column name: Link generic cost for egressing to TAZ from stop.
WALK_ACCESS_COLUMN_ELEVATION_GAINfasttrips Walk access links column name: Elevation Gain, feet gained along link.
WALK_ACCESS_COLUMN_EMPLOYMENT_DENSITYfasttrips Walk access links column name: Employment Density, employees per square mile.
WALK_ACCESS_COLUMN_INDIRECTNESSfasttrips Walk access links column name: Indirectness, ratio of Manhattan distance to crow-fly distance.
WALK_ACCESS_COLUMN_POPULATION_DENSITYfasttrips Walk access links column name: Population Density, people per square mile.
WALK_ACCESS_COLUMN_STOPWalk access links column name: Stop Identifier.
WALK_ACCESS_COLUMN_STOP_NUMWalk access links column name: Stop Numerical Identifier.
WALK_ACCESS_COLUMN_SUPPLY_MODEWalk access links column name: Supply mode.
WALK_ACCESS_COLUMN_SUPPLY_MODE_NUMWalk access links column name: Supply mode number.
WALK_ACCESS_COLUMN_TAZWalk access links column name: TAZ Identifier.
WALK_ACCESS_COLUMN_TAZ_NUMWalk access links column name: TAZ Numerical Identifier.
WALK_ACCESS_COLUMN_TIMEWalk access links column name: Link walk time.
WALK_ACCESS_COLUMN_TIME_MINWalk access links column name: Link walk time in minutes.
WALK_MODE_NUMSWalk mode number list
walk_access_dfWalk access links table.
drive_access_dfDrive access links table.