forked from transitland/transitland-atlas
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
479 changed files
with
265 additions
and
5,606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Review of US NTD GTFS weblinks | ||
|
||
The files in this subdirectory relate to reviewing the US NTD release of GTFS weblinks and using it to update and add coverage to Transitland Atlas. | ||
|
||
## Background | ||
|
||
See: | ||
|
||
- https://www.interline.io/blog/us-ntd-reporting-gtfs/ | ||
- https://www.interline.io/blog/us-ntd-reporting-gtfs-adopted/ | ||
- https://www.interline.io/blog/us-national-transit-database-releases-data-and-requests-more-feedback-2/ | ||
- https://www.transit.dot.gov/ntd/data-product/2023-annual-database-general-transit-feed-specification-gtfs-weblinks | ||
|
||
## Files in this subdirectory | ||
|
||
- `2023-gtfs-weblinks-checked.csv` - CSV of feeds that have been checked against Transitland contents in late 2024. The `Status` column indicates: | ||
- "Success" - URL returns valid GTFS data | ||
- "Success (Retried with HTTP/HTTPS)" - URL works after protocol change | ||
- "No results" - URL is not accessible or doesn't return valid GTFS | ||
- Note: Agencies that did not provide a URL are not included in the check results. We welcome help to politely contact these agencies directly to ask for public URLs for their GTFS feeds. | ||
- `2023-gtfs-weblinks.dmfr.json` - a JSON file containing proposed DMFR records for potentially unmatched records | ||
|
||
## Help wanted | ||
|
||
To help, review the contents of `2023-gtfs-weblinks.dmfr.json`: | ||
|
||
1) Look for records that may be missing in Transitland Atlas | ||
2) Check for `likely_match_operator_link` and `likely_match_full` to see if the script successfully found an existing match, or if it's just noise | ||
3) Also browse the Transitland map and website for an existing feed record in the same location but a different name (sometimes agencies change their brand name, or use a different name when reporting to NTD) | ||
4) When adding a feed to Transitland Atlas, you can also delete the relevant portion of `2023-gtfs-weblinks.dmfr.json` in the same pull request | ||
|
||
## Notes | ||
|
||
To recreate these files: | ||
|
||
```sh | ||
wget https://www.transit.dot.gov/sites/fta.dot.gov/files/2024-10/2023%20GTFS%20Weblinks.xlsx | ||
|
||
in2csv 2023\ GTFS\ Weblinks.xlsx > 2023-gtfs-weblinks.csv | ||
|
||
pipenv run python check-ntd-urls.py 2023-gtfs-weblinks.csv > 2023-gtfs-weblinks-checked.csv | ||
|
||
pipenv run python check-ntd-urls.py | ||
``` | ||
|
||
## NTD IDs in Transitland Atlas | ||
|
||
Operator records in DMFR files that correspond to US NTD-reporting agencies can include a `us_ntd_id` tag with the agency's NTD ID. For example: | ||
|
||
```json | ||
{ | ||
"feeds": [ | ||
{ | ||
"id": "f-c23-metrokingcounty", | ||
"spec": "gtfs", | ||
"urls": { | ||
"static_current": "http://metro.kingcounty.gov/GTFS/google_transit.zip" | ||
}, | ||
"operators": [ | ||
{ | ||
"onestop_id": "o-c23-metrotransit", | ||
"name": "King County Metro", | ||
"website": "http://metro.kingcounty.gov", | ||
"tags": { | ||
"us_ntd_id": "00001" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
``` | ||
|
||
This will be useful for ongoing cross-referencing between Transitland and US NTD datasets. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"$schema": "https://dmfr.transit.land/json-schema/dmfr.schema-v0.5.1.json", | ||
"feeds": [ | ||
{ | ||
"id": "f-vna~home~healthcare~hospice~community~service", | ||
"spec": "gtfs", | ||
"urls": { | ||
"static_current": "http://www.swrpc.org/wp-content/uploads/2024/03/HCS_GTFS.zip" | ||
}, | ||
"operators": [ | ||
{ | ||
"onestop_id": "o-vna~home~healthcare~hospice~community~service", | ||
"name": "VNA Home Healthcare, Hospice & Community Service", | ||
"short_name": "City Express", | ||
"website": "https://www.hcsservices.org/services/transportation/city-express/", | ||
"tags": { | ||
"us_ntd_id": "10159" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"license_spdx_identifier": "CDLA-Permissive-1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"$schema": "https://dmfr.transit.land/json-schema/dmfr.schema-v0.5.1.json", | ||
"feeds": [ | ||
{ | ||
"id": "f-tri~county~cap~inc~north~country~transit", | ||
"spec": "gtfs", | ||
"urls": { | ||
"static_current": "https://tricountytransit.org/GTFS/GTFS.zip" | ||
}, | ||
"operators": [ | ||
{ | ||
"onestop_id": "o-tri~county~cap~inc~north~country~transit", | ||
"name": "Tri-County CAP, Inc./North Country Transit", | ||
"short_name": "TCT", | ||
"website": "https://tricountytransit.org/", | ||
"tags": { | ||
"us_ntd_id": "10172" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"license_spdx_identifier": "CDLA-Permissive-1.0" | ||
} |
Oops, something went wrong.