Skip to content

Commit

Permalink
build-graph: downlaod sta gtfs, but probably not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Mar 13, 2024
1 parent 983a936 commit 63f3f04
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build-graph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

WGET="wget --progress=bar:force:noscroll"

GTFS_URL=https://gtfs.api.opendatahub.testingmachine.eu/v1/dataset/sta-time-tables/raw
GTFS_ZIP=data/sta_gtfs.zip

# OSM
NORTH_EAST_URL=https://download.geofabrik.de/europe/italy/nord-est-latest.osm.pbf
NORTH_EAST_PBF=data/italy-nord-est.osm.pbf
Expand Down Expand Up @@ -37,6 +40,12 @@ if [ ! -f "${ELEVATION_ZIP}" ]; then
fi


# get STA gtfs
if [ ! -f "${GTFS_ZIP}" ]; then
${WGET} ${GTFS_URL} -O ${GTFS_ZIP}
unzip -o ${GTFS_ZIP} -d data
fi

# actually do graph build
docker run \
-v .:/var/opentripplanner/:z \
Expand Down

0 comments on commit 63f3f04

Please sign in to comment.