Skip to content

Commit

Permalink
add express bus definitions for Soltrains and VINE
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed May 19, 2021
1 parent df60035 commit 6765be4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lasso/mtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,8 @@ def add_tap_id_to_node(
)
)

return roadway_network

def roadway_standard_to_mtc_network(
roadway_network = None,
parameters = None,
Expand Down Expand Up @@ -1829,6 +1831,12 @@ def _is_express_bus(x):
if x.agency_name == "WestCat (Western Contra Costa)":
if (x.route_short_name.startswith("J")) | (x.route_short_name.startswith("Lynx")):
return 1
if x.agency_name == "SolTrans":
if (x.route_short_name in ["80", "92", "78"]) | (x.route_long_name in ["80", "92", "78"]):
return 1
if x.agency_name == "Vine (Napa County)":
if x.route_short_name in ["29"]:
return 1
return 0

def _special_vehicle_type(x):
Expand Down
2 changes: 2 additions & 0 deletions mtc_data/lookups/gtfs_to_tm2_mode_crosswalk.csv
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ SamTrans_2015_8_20,SamTrans,samtrans-ca-us,6,3,24,Local bus,4,0,Motor Standard B
SamTrans_2015_8_20,SamTrans,samtrans-ca-us,6,3,80,Express bus,25,1,SamTrans Plus Bus
SantaRosa_google_transit_08_28_15,Santa Rosa CityBus,SRCityBus,1,3,66,Local bus,21,0,Motor Standard Bus
Soltrans_2016_5_20,SolTrans,247,12,3,49,Local bus,13,0,Motor Standard Bus
Soltrans_2016_5_20,SolTrans,247,12,3,91,Express bus,13,1,Motor Standard Bus
SonomaCounty_2015_8_18,Sonoma County Transit,175,19,3,63,Local bus,20,0,Motor Standard Bus
SonomaCounty_2015_8_18,Cloverdale Transit,183,19,3,63,Local bus,20,0,Motor Standard Bus
TriDelta-GTFS-2018-05-24_21-43-17,Tri Delta Transit,tri-delta-transit,4,3,44,Local bus,11,0,Motor Standard Bus
Expand All @@ -37,6 +38,7 @@ VTA_2015_8_27,VTA,VTA,31,0,111,Light rail,40,0,VTA LRT2
VTA_2015_8_27,VTA,VTA,31,3,28,Local bus,5,0,Motor Standard Bus
VTA_2015_8_27,VTA,VTA,31,3,81,Express bus,26,1,Motor Standard Bus
Vine_GTFS_PLUS_2015,Vine (Napa County),362,38,3,60,Local bus,19,0,Motor Standard Bus
Vine_GTFS_PLUS_2015,Vine (Napa County),362,38,3,94,Express bus,19,1,Motor Standard Bus
WestCAT_2016_5_26,WestCat (Western Contra Costa),392,37,3,46,Local bus,12,0,Motor Standard Bus
WestCAT_2016_5_26,WestCat (Western Contra Costa),392,37,3,90,Express bus,31,1,AC Plus Bus
petalumatransit-petaluma-ca-us__11_12_15,Petaluma Transit,267,21,3,68,Local bus,22,0,Motor Standard Bus
Expand Down

0 comments on commit 6765be4

Please sign in to comment.