Skip to content

Commit

Permalink
Changed links fot the best practices... (#467)
Browse files Browse the repository at this point in the history
... from MobilityData's to Google Transit's repo.

The GTFS Schedule Best Practices
before: https://github.com/MobilityData/GTFS_Schedule_Best-Practices/blob/master/en/best-practices.md
now: https://github.com/google/transit/blob/master/gtfs/best-practices/best-practices.md
GTFS Realtime Best Practices
before: this folder (we had to have a script that created a single file with all that)
now: https://github.com/google/transit/blob/master/gtfs-realtime/best-practices/best-practices.md (I created the file at source from the individual files)
  • Loading branch information
fredericsimard authored May 21, 2024
1 parent 320729d commit 7154851
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions scripts/fetchdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sed -i.bak 's,examples/3-leg.svg,../assets/3-leg.svg,g' docs/schedule/reference.
# ---------------------------------------------------------------------------------

## GTFS Schedule best practices (schedule/best-practices)
curl https://raw.githubusercontent.com/MobilityData/GTFS_Schedule_Best-Practices/master/en/best-practices.md -o docs/schedule/best-practices.md
curl https://raw.githubusercontent.com/google/transit/master/gtfs/best-practices/best-practices.md -o docs/schedule/best-practices.md

### patch links
sed -i.bak "s,#dataset-publishing--general-practices,#dataset-publishing-general-practices,g" docs/schedule/best-practices.md
Expand Down Expand Up @@ -101,16 +101,7 @@ For more information about using protobufs, see the [Protocol Buffers Developer

## GTFS Realtime best practices
rm docs/realtime/best-practices.md
rm -rf repos
git clone https://github.com/MobilityData/GTFS_Realtime_Best-Practices repos/gtfs-realtime-best-practices
BEST_PRACTICE_FILES=(introduction FeedHeader FeedEntity TripUpdate TripDescriptor VehicleDescriptor StopTimeUpdate StopTimeEvent VehiclePosition Position Alert Frequency-based about)

for i in "${BEST_PRACTICE_FILES[@]}"
do
(cat repos/gtfs-realtime-best-practices/en/$i.md ; echo) >> docs/realtime/best-practices.md
done

rm -rf repos
curl https://raw.githubusercontent.com/google/transit/master/gtfs-realtime/best-practices/best-practices.md -o docs/realtime/best-practices.md

### replace header
new_header='# GTFS Realtime Best Practices'
Expand Down

0 comments on commit 7154851

Please sign in to comment.