Skip to content

Account for facility type and agency when creating depot deadhead trips #32

@dan-mccabe

Description

@dan-mccabe

infer_depot_trip_endpoints() in depot_deadhead.py currently matches the start and end location of each point to the nearest point in the Transit_Depot shapefile. However, there are a couple of issues with the existing approach:

  • The shapefile includes facility types other than depots, e.g., transit agency headquarters. We should only be using actual depot locations.
  • The existing code doesn't filter by agency, so we might be assigning buses to a depot that belongs to another agency.

@YiZoeHe please update the code to filter based on agency and facility type. It looks like this dataset came from the NTD at https://data.transportation.gov/stories/s/gd62-jzra, so you can use the data description there to determine which facility types should be treated as depots, and how to connect the NTD IDs reported in the shapefile with agency names/IDs from GTFS.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions