diff --git a/conveyal_update/conveyal_vars.py b/conveyal_update/conveyal_vars.py index 2ebfc8280..c7996961d 100644 --- a/conveyal_update/conveyal_vars.py +++ b/conveyal_update/conveyal_vars.py @@ -1,17 +1,20 @@ import datetime as dt +from shared_utils import rt_dates GCS_PATH = 'gs://calitp-analytics-data/data-analyses/conveyal_update/' -TARGET_DATE = dt.date(2022, 9, 21) # 2022 date for SCAG request +TARGET_DATE = rt_dates.DATES['oct2024'] OSM_FILE = 'us-west-latest.osm.pbf' # http://download.geofabrik.de/north-america/us-west-latest.osm.pbf # first download with wget... conveyal_regions = {} # boundaries correspond to Conveyal Analysis regions -conveyal_regions['norcal'] = {'north': 42.03909, 'south': 39.07038, 'east': -119.60541, 'west': -124.49158} -conveyal_regions['central'] = {'north': 39.64165, 'south': 35.87347, 'east': -117.53174, 'west': -123.83789} -conveyal_regions['socal'] = {'north': 35.8935, 'south': 32.5005, 'east': -114.13121, 'west': -121.46759} -conveyal_regions['mojave'] = {'north': 37.81629, 'south': 34.89945, 'east': -114.59015, 'west': -118.38043} +# conveyal_regions['norcal'] = {'north': 42.03909, 'south': 39.07038, 'east': -119.60541, 'west': -124.49158} +# conveyal_regions['central'] = {'north': 39.64165, 'south': 35.87347, 'east': -117.53174, 'west': -123.83789} +# conveyal_regions['socal'] = {'north': 35.8935, 'south': 32.5005, 'east': -114.13121, 'west': -121.46759} +# conveyal_regions['mojave'] = {'north': 37.81629, 'south': 34.89945, 'east': -114.59015, 'west': -118.38043} +# special region for one-off SR99 CMCP +conveyal_regions['sr99'] = {'north': 38.71337, 'south': 34.81154, 'east': -118.66882, 'west': -121.66259} # # special region for one-off Centennial Corridor # conveyal_regions['bakersfield'] = {'north': 36.81, 'south': 34.13, 'east': -117.12, 'west': -120.65} \ No newline at end of file diff --git a/conveyal_update/download_data.py b/conveyal_update/download_data.py index 74d6b2d00..3dcdf0f84 100644 --- a/conveyal_update/download_data.py +++ b/conveyal_update/download_data.py @@ -14,7 +14,7 @@ regions = conveyal_vars.conveyal_regions TARGET_DATE = conveyal_vars.TARGET_DATE -regions_and_feeds = pd.read_parquet(f'{conveyal_vars.GCS_PATH}regions_feeds_{TARGET_DATE.isoformat()}.parquet') +regions_and_feeds = pd.read_parquet(f'{conveyal_vars.GCS_PATH}regions_feeds_{TARGET_DATE}.parquet') def download_feed(row): # need wildcard for file too -- not all are gtfs.zip! diff --git a/conveyal_update/evaluate_feeds.py b/conveyal_update/evaluate_feeds.py index d11d9e8e4..3e1fe3ae7 100644 --- a/conveyal_update/evaluate_feeds.py +++ b/conveyal_update/evaluate_feeds.py @@ -21,6 +21,7 @@ def check_defined_elsewhere(row, df): def get_feeds_check_service(): feeds_on_target = gtfs_utils_v2.schedule_daily_feed_to_gtfs_dataset_name(selected_date=TARGET_DATE) + feeds_on_target = feeds_on_target.rename(columns={'name':'gtfs_dataset_name'}) # default will use mtc subfeeds (prev Conveyal behavior), can spec customer facing if we wanna switch operator_feeds = feeds_on_target.feed_key @@ -38,7 +39,7 @@ def get_feeds_check_service(): def attach_transit_services(feeds_on_target: pd.DataFrame): - target_dt = dt.datetime.combine(TARGET_DATE, dt.time(0)) + target_dt = dt.datetime.combine(dt.date.fromisoformat(TARGET_DATE), dt.time(0)) services = (tbls.mart_transit_database.dim_gtfs_service_data() >> filter(_._valid_from <= target_dt, _._valid_to > target_dt) @@ -60,7 +61,7 @@ def report_undefined(feeds_on_target: pd.DataFrame): print(undefined.columns) print('these feeds have no service defined on target date, nor are their services captured in other feeds:') # gtfs_dataset_name no longer present, this whole script should probably be updated/replaced - # print(undefined >> select(_.gtfs_dataset_name, _.service_any_feed)) + print(undefined >> select(_.gtfs_dataset_name, _.service_any_feed)) print(f'saving detailed csv to {fname}') undefined.to_csv(fname) return @@ -71,5 +72,5 @@ def report_undefined(feeds_on_target: pd.DataFrame): feeds_on_target = attach_transit_services(feeds_on_target) print(f'feeds on target date shape: {feeds_on_target.shape}') report_undefined(feeds_on_target) - feeds_on_target.to_parquet(f'{conveyal_vars.GCS_PATH}feeds_{TARGET_DATE.isoformat()}.parquet') + feeds_on_target.to_parquet(f'{conveyal_vars.GCS_PATH}feeds_{TARGET_DATE}.parquet') \ No newline at end of file diff --git a/conveyal_update/match_feeds_regions.py b/conveyal_update/match_feeds_regions.py index 9008e311f..7f980437c 100644 --- a/conveyal_update/match_feeds_regions.py +++ b/conveyal_update/match_feeds_regions.py @@ -13,7 +13,7 @@ regions = conveyal_vars.conveyal_regions TARGET_DATE = conveyal_vars.TARGET_DATE -feeds_on_target = pd.read_parquet(f'{conveyal_vars.GCS_PATH}feeds_{TARGET_DATE.isoformat()}.parquet') +feeds_on_target = pd.read_parquet(f'{conveyal_vars.GCS_PATH}feeds_{TARGET_DATE}.parquet') def create_region_gdf(): # https://shapely.readthedocs.io/en/stable/reference/shapely.box.html#shapely.box @@ -38,4 +38,4 @@ def join_stops_regions(region_gdf: gpd.GeoDataFrame, feeds_on_target: pd.DataFra regions_and_feeds = join_stops_regions(region_gdf, feeds_on_target) regions_and_feeds = regions_and_feeds >> inner_join(_, feeds_on_target >> select(_.feed_key, _.gtfs_dataset_name, _.base64_url, _.date), on = 'feed_key') - regions_and_feeds.to_parquet(f'{conveyal_vars.GCS_PATH}regions_feeds_{TARGET_DATE.isoformat()}.parquet') \ No newline at end of file + regions_and_feeds.to_parquet(f'{conveyal_vars.GCS_PATH}regions_feeds_{TARGET_DATE}.parquet') \ No newline at end of file diff --git a/conveyal_update/scag_2022_export.ipynb b/conveyal_update/scag_2022_export.ipynb index 0f4194e40..a619e332b 100644 --- a/conveyal_update/scag_2022_export.ipynb +++ b/conveyal_update/scag_2022_export.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 9, + "execution_count": 1, "id": "2f0079e6-ac0e-4528-9970-2f3f4c453caa", "metadata": { "tags": [] @@ -17,6 +17,561 @@ "import json" ] }, + { + "cell_type": "code", + "execution_count": 2, + "id": "12238eac-ada9-4b82-9db7-52ed02112166", + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "os.environ[\"CALITP_BQ_MAX_BYTES\"] = str(800_000_000_000)\n", + "from shared_utils import gtfs_utils_v2\n", + "\n", + "from calitp_data_analysis.tables import tbls" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "b865f3c0-5f0f-4fe6-ae6d-b72241593ab1", + "metadata": {}, + "outputs": [], + "source": [ + "import conveyal_vars\n", + "import evaluate_feeds" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "ebb475b1-5155-484b-9c5c-dab9a67b2ddb", + "metadata": {}, + "outputs": [], + "source": [ + "df = evaluate_feeds.get_feeds_check_service()" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "c170ea11-dd08-4d27-b80a-64309ffcd3cf", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
keydatefeed_keyfeed_timezonebase64_urlgtfs_dataset_keytyperegional_feed_typenservice_key
04125ea47789c59d089ac1d5ead4d77942024-10-16696beb3cb2e375f8524ae18eff0d041dAmerica/Los_AngelesaHR0cHM6Ly9ndGZzLmNhbGl0cC5vcmcvcHJvZHVjdGlvbi...011e7b627d3c66bdff6d132359fe893dscheduleNoneNaN9bf27849403d9fd205ad3bdab95eee75
1c10c3edb0f0b91efbafe23d66eea33d22024-10-16511d593426d1fd821037dfd47d2e3cc8America/Los_AngelesaHR0cHM6Ly90Y3J0YS50cmlwc2hvdC5jb20vdjEvZ3Rmcy...0139b1253130b33adcd4b3a4490530d2scheduleNone310.0a904344b7befc937a6bec6ac9f4dc95e
20a052cef2795327217a094d7dcab89412024-10-168685c49ef1273fe958478531f2c6a781America/Los_AngelesaHR0cHM6Ly9hcGkuNTExLm9yZy90cmFuc2l0L2RhdGFmZW...015d67d5b75b5cf2b710bbadadfb75f5scheduleRegional Subfeed642.0b084c88a8a29daaf8e60efd2c5f80e4f
3a01bb4a8d9ac98d49c8c5e92aa0ed9302024-10-16705807dec27e43e0d93e9a7e966068d8America/Los_AngelesaHR0cHM6Ly93d3cuYXVidXJuLmNhLmdvdi9Eb2N1bWVudE...020467a276c12a9fe4b0a2332e393f2cscheduleNone8.0434367bd6da9dfb848dd4049784a5f5a
4502985287f0329886c92cde5f2f285b22024-10-160110e66b44a8f07126af415097613bb6America/Los_AngelesaHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy...0666caf3ec1ecc96b74f4477ee4bc939scheduleNone13658.04c0e57d94eb0c9d03fda80fb6de7a271
.................................
2404e4b4362ff1df49de57ad784a6b45a1a2024-10-16d53527fad752767624caca4b773f26eaAmerica/AnchorageaHR0cDovL3d3dy5zYW5qdWFuY2FwaXN0cmFuby5yaWRlc3...fbea6a9ec53590f709e42e6aa5d0a79escheduleNone18.089a211c66cb55e774d37682c236f8ce7
241381626c4ed3c74419d65927d585ee4412024-10-16590892713ceb1d0389dec7a4c7e0e25bAmerica/Los_AngelesaHR0cHM6Ly9wYXNzaW8zLmNvbS9tb250ZXJleXAvcGFzc2...fc6cd27871cce0092a08ccf68fb240a2scheduleNone99.0efb87f21092613134b308705dac0151c
2428c6823bbc7b380bb1ad362d8a52f71592024-10-1627bc8cf0848f3636c1047194318a92dfAmerica/Los_AngelesaHR0cDovL3NjaGVkdWxlLml2dHJhbnNpdC5jb20vcHVibG...fe4aab1717eca5a2935c32c85a35a5bfscheduleNone134.0040e72a4d2f1afe5070e62e31d2e6647
243dc9b668adf96f067d0c017061ab463fc2024-10-16638d90ba5ade8b25240024e6cae907e9America/Los_AngelesaHR0cDovL2FwcC5tZWNhdHJhbi5jb20vdXJiL3dzL2ZlZW...ff1bc5dde661d62c877165421e9ca257scheduleNone72.069a2e7920b0c88926616670f02e2f531
24403b9c687984a5c64ec7b484f8ac950e92024-10-16dbcc1dfac53e7f1429b00b67d1dddfc8America/Los_AngelesaHR0cHM6Ly9kYXRhLnRyaWxsaXVtdHJhbnNpdC5jb20vZ3...ff51495a24cf286ff2f7bc9b3401f855scheduleNoneNaNace2b05f5e1621f256d77bdc46b9e5dd
\n", + "

245 rows × 10 columns

\n", + "
" + ], + "text/plain": [ + " key date \\\n", + "0 4125ea47789c59d089ac1d5ead4d7794 2024-10-16 \n", + "1 c10c3edb0f0b91efbafe23d66eea33d2 2024-10-16 \n", + "2 0a052cef2795327217a094d7dcab8941 2024-10-16 \n", + "3 a01bb4a8d9ac98d49c8c5e92aa0ed930 2024-10-16 \n", + "4 502985287f0329886c92cde5f2f285b2 2024-10-16 \n", + ".. ... ... \n", + "240 4e4b4362ff1df49de57ad784a6b45a1a 2024-10-16 \n", + "241 381626c4ed3c74419d65927d585ee441 2024-10-16 \n", + "242 8c6823bbc7b380bb1ad362d8a52f7159 2024-10-16 \n", + "243 dc9b668adf96f067d0c017061ab463fc 2024-10-16 \n", + "244 03b9c687984a5c64ec7b484f8ac950e9 2024-10-16 \n", + "\n", + " feed_key feed_timezone \\\n", + "0 696beb3cb2e375f8524ae18eff0d041d America/Los_Angeles \n", + "1 511d593426d1fd821037dfd47d2e3cc8 America/Los_Angeles \n", + "2 8685c49ef1273fe958478531f2c6a781 America/Los_Angeles \n", + "3 705807dec27e43e0d93e9a7e966068d8 America/Los_Angeles \n", + "4 0110e66b44a8f07126af415097613bb6 America/Los_Angeles \n", + ".. ... ... \n", + "240 d53527fad752767624caca4b773f26ea America/Anchorage \n", + "241 590892713ceb1d0389dec7a4c7e0e25b America/Los_Angeles \n", + "242 27bc8cf0848f3636c1047194318a92df America/Los_Angeles \n", + "243 638d90ba5ade8b25240024e6cae907e9 America/Los_Angeles \n", + "244 dbcc1dfac53e7f1429b00b67d1dddfc8 America/Los_Angeles \n", + "\n", + " base64_url \\\n", + "0 aHR0cHM6Ly9ndGZzLmNhbGl0cC5vcmcvcHJvZHVjdGlvbi... \n", + "1 aHR0cHM6Ly90Y3J0YS50cmlwc2hvdC5jb20vdjEvZ3Rmcy... \n", + "2 aHR0cHM6Ly9hcGkuNTExLm9yZy90cmFuc2l0L2RhdGFmZW... \n", + "3 aHR0cHM6Ly93d3cuYXVidXJuLmNhLmdvdi9Eb2N1bWVudE... \n", + "4 aHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy... \n", + ".. ... \n", + "240 aHR0cDovL3d3dy5zYW5qdWFuY2FwaXN0cmFuby5yaWRlc3... \n", + "241 aHR0cHM6Ly9wYXNzaW8zLmNvbS9tb250ZXJleXAvcGFzc2... \n", + "242 aHR0cDovL3NjaGVkdWxlLml2dHJhbnNpdC5jb20vcHVibG... \n", + "243 aHR0cDovL2FwcC5tZWNhdHJhbi5jb20vdXJiL3dzL2ZlZW... \n", + "244 aHR0cHM6Ly9kYXRhLnRyaWxsaXVtdHJhbnNpdC5jb20vZ3... \n", + "\n", + " gtfs_dataset_key type regional_feed_type n \\\n", + "0 011e7b627d3c66bdff6d132359fe893d schedule None NaN \n", + "1 0139b1253130b33adcd4b3a4490530d2 schedule None 310.0 \n", + "2 015d67d5b75b5cf2b710bbadadfb75f5 schedule Regional Subfeed 642.0 \n", + "3 020467a276c12a9fe4b0a2332e393f2c schedule None 8.0 \n", + "4 0666caf3ec1ecc96b74f4477ee4bc939 schedule None 13658.0 \n", + ".. ... ... ... ... \n", + "240 fbea6a9ec53590f709e42e6aa5d0a79e schedule None 18.0 \n", + "241 fc6cd27871cce0092a08ccf68fb240a2 schedule None 99.0 \n", + "242 fe4aab1717eca5a2935c32c85a35a5bf schedule None 134.0 \n", + "243 ff1bc5dde661d62c877165421e9ca257 schedule None 72.0 \n", + "244 ff51495a24cf286ff2f7bc9b3401f855 schedule None NaN \n", + "\n", + " service_key \n", + "0 9bf27849403d9fd205ad3bdab95eee75 \n", + "1 a904344b7befc937a6bec6ac9f4dc95e \n", + "2 b084c88a8a29daaf8e60efd2c5f80e4f \n", + "3 434367bd6da9dfb848dd4049784a5f5a \n", + "4 4c0e57d94eb0c9d03fda80fb6de7a271 \n", + ".. ... \n", + "240 89a211c66cb55e774d37682c236f8ce7 \n", + "241 efb87f21092613134b308705dac0151c \n", + "242 040e72a4d2f1afe5070e62e31d2e6647 \n", + "243 69a2e7920b0c88926616670f02e2f531 \n", + "244 ace2b05f5e1621f256d77bdc46b9e5dd \n", + "\n", + "[245 rows x 10 columns]" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "evaluate_feeds.attach_transit_services(df)" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "7bcb8df4-4df8-4e6b-9767-748f709554ff", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
keydatefeed_keyfeed_timezonebase64_urlgtfs_dataset_keynametyperegional_feed_type
04125ea47789c59d089ac1d5ead4d77942024-10-16696beb3cb2e375f8524ae18eff0d041dAmerica/Los_AngelesaHR0cHM6Ly9ndGZzLmNhbGl0cC5vcmcvcHJvZHVjdGlvbi...011e7b627d3c66bdff6d132359fe893dEastern Sierra FlexscheduleNone
1c10c3edb0f0b91efbafe23d66eea33d22024-10-16511d593426d1fd821037dfd47d2e3cc8America/Los_AngelesaHR0cHM6Ly90Y3J0YS50cmlwc2hvdC5jb20vdjEvZ3Rmcy...0139b1253130b33adcd4b3a4490530d2TCRTA TripShot SchedulescheduleNone
20a052cef2795327217a094d7dcab89412024-10-168685c49ef1273fe958478531f2c6a781America/Los_AngelesaHR0cHM6Ly9hcGkuNTExLm9yZy90cmFuc2l0L2RhdGFmZW...015d67d5b75b5cf2b710bbadadfb75f5Bay Area 511 Marin SchedulescheduleRegional Subfeed
3a01bb4a8d9ac98d49c8c5e92aa0ed9302024-10-16705807dec27e43e0d93e9a7e966068d8America/Los_AngelesaHR0cHM6Ly93d3cuYXVidXJuLmNhLmdvdi9Eb2N1bWVudE...020467a276c12a9fe4b0a2332e393f2cAuburn SchedulescheduleNone
6502985287f0329886c92cde5f2f285b22024-10-160110e66b44a8f07126af415097613bb6America/Los_AngelesaHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy...0666caf3ec1ecc96b74f4477ee4bc939LA Metro Bus SchedulescheduleNone
..............................
2524e4b4362ff1df49de57ad784a6b45a1a2024-10-16d53527fad752767624caca4b773f26eaAmerica/AnchorageaHR0cDovL3d3dy5zYW5qdWFuY2FwaXN0cmFuby5yaWRlc3...fbea6a9ec53590f709e42e6aa5d0a79eSan Juan Capistrano Trolley SchedulescheduleNone
253381626c4ed3c74419d65927d585ee4412024-10-16590892713ceb1d0389dec7a4c7e0e25bAmerica/Los_AngelesaHR0cHM6Ly9wYXNzaW8zLmNvbS9tb250ZXJleXAvcGFzc2...fc6cd27871cce0092a08ccf68fb240a2Spirit Bus Passio SchedulescheduleNone
2548c6823bbc7b380bb1ad362d8a52f71592024-10-1627bc8cf0848f3636c1047194318a92dfAmerica/Los_AngelesaHR0cDovL3NjaGVkdWxlLml2dHJhbnNpdC5jb20vcHVibG...fe4aab1717eca5a2935c32c85a35a5bfImperial Valley Transit SchedulescheduleNone
255dc9b668adf96f067d0c017061ab463fc2024-10-16638d90ba5ade8b25240024e6cae907e9America/Los_AngelesaHR0cDovL2FwcC5tZWNhdHJhbi5jb20vdXJiL3dzL2ZlZW...ff1bc5dde661d62c877165421e9ca257Santa Ynez Mecatran SchedulescheduleNone
25603b9c687984a5c64ec7b484f8ac950e92024-10-16dbcc1dfac53e7f1429b00b67d1dddfc8America/Los_AngelesaHR0cHM6Ly9kYXRhLnRyaWxsaXVtdHJhbnNpdC5jb20vZ3...ff51495a24cf286ff2f7bc9b3401f855Blossom Express SchedulescheduleNone
\n", + "

219 rows × 9 columns

\n", + "
" + ], + "text/plain": [ + " key date \\\n", + "0 4125ea47789c59d089ac1d5ead4d7794 2024-10-16 \n", + "1 c10c3edb0f0b91efbafe23d66eea33d2 2024-10-16 \n", + "2 0a052cef2795327217a094d7dcab8941 2024-10-16 \n", + "3 a01bb4a8d9ac98d49c8c5e92aa0ed930 2024-10-16 \n", + "6 502985287f0329886c92cde5f2f285b2 2024-10-16 \n", + ".. ... ... \n", + "252 4e4b4362ff1df49de57ad784a6b45a1a 2024-10-16 \n", + "253 381626c4ed3c74419d65927d585ee441 2024-10-16 \n", + "254 8c6823bbc7b380bb1ad362d8a52f7159 2024-10-16 \n", + "255 dc9b668adf96f067d0c017061ab463fc 2024-10-16 \n", + "256 03b9c687984a5c64ec7b484f8ac950e9 2024-10-16 \n", + "\n", + " feed_key feed_timezone \\\n", + "0 696beb3cb2e375f8524ae18eff0d041d America/Los_Angeles \n", + "1 511d593426d1fd821037dfd47d2e3cc8 America/Los_Angeles \n", + "2 8685c49ef1273fe958478531f2c6a781 America/Los_Angeles \n", + "3 705807dec27e43e0d93e9a7e966068d8 America/Los_Angeles \n", + "6 0110e66b44a8f07126af415097613bb6 America/Los_Angeles \n", + ".. ... ... \n", + "252 d53527fad752767624caca4b773f26ea America/Anchorage \n", + "253 590892713ceb1d0389dec7a4c7e0e25b America/Los_Angeles \n", + "254 27bc8cf0848f3636c1047194318a92df America/Los_Angeles \n", + "255 638d90ba5ade8b25240024e6cae907e9 America/Los_Angeles \n", + "256 dbcc1dfac53e7f1429b00b67d1dddfc8 America/Los_Angeles \n", + "\n", + " base64_url \\\n", + "0 aHR0cHM6Ly9ndGZzLmNhbGl0cC5vcmcvcHJvZHVjdGlvbi... \n", + "1 aHR0cHM6Ly90Y3J0YS50cmlwc2hvdC5jb20vdjEvZ3Rmcy... \n", + "2 aHR0cHM6Ly9hcGkuNTExLm9yZy90cmFuc2l0L2RhdGFmZW... \n", + "3 aHR0cHM6Ly93d3cuYXVidXJuLmNhLmdvdi9Eb2N1bWVudE... \n", + "6 aHR0cHM6Ly9naXRsYWIuY29tL0xBQ01UQS9ndGZzX2J1cy... \n", + ".. ... \n", + "252 aHR0cDovL3d3dy5zYW5qdWFuY2FwaXN0cmFuby5yaWRlc3... \n", + "253 aHR0cHM6Ly9wYXNzaW8zLmNvbS9tb250ZXJleXAvcGFzc2... \n", + "254 aHR0cDovL3NjaGVkdWxlLml2dHJhbnNpdC5jb20vcHVibG... \n", + "255 aHR0cDovL2FwcC5tZWNhdHJhbi5jb20vdXJiL3dzL2ZlZW... \n", + "256 aHR0cHM6Ly9kYXRhLnRyaWxsaXVtdHJhbnNpdC5jb20vZ3... \n", + "\n", + " gtfs_dataset_key name \\\n", + "0 011e7b627d3c66bdff6d132359fe893d Eastern Sierra Flex \n", + "1 0139b1253130b33adcd4b3a4490530d2 TCRTA TripShot Schedule \n", + "2 015d67d5b75b5cf2b710bbadadfb75f5 Bay Area 511 Marin Schedule \n", + "3 020467a276c12a9fe4b0a2332e393f2c Auburn Schedule \n", + "6 0666caf3ec1ecc96b74f4477ee4bc939 LA Metro Bus Schedule \n", + ".. ... ... \n", + "252 fbea6a9ec53590f709e42e6aa5d0a79e San Juan Capistrano Trolley Schedule \n", + "253 fc6cd27871cce0092a08ccf68fb240a2 Spirit Bus Passio Schedule \n", + "254 fe4aab1717eca5a2935c32c85a35a5bf Imperial Valley Transit Schedule \n", + "255 ff1bc5dde661d62c877165421e9ca257 Santa Ynez Mecatran Schedule \n", + "256 ff51495a24cf286ff2f7bc9b3401f855 Blossom Express Schedule \n", + "\n", + " type regional_feed_type \n", + "0 schedule None \n", + "1 schedule None \n", + "2 schedule Regional Subfeed \n", + "3 schedule None \n", + "6 schedule None \n", + ".. ... ... \n", + "252 schedule None \n", + "253 schedule None \n", + "254 schedule None \n", + "255 schedule None \n", + "256 schedule None \n", + "\n", + "[219 rows x 9 columns]" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "gtfs_utils_v2.schedule_daily_feed_to_gtfs_dataset_name(selected_date=TARGET_DATE)" + ] + }, { "cell_type": "markdown", "id": "b52cd909-556a-4e69-8abd-b54ae1f2181d",