-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from leonardehrenfried/otp2
Activate SkyAlps, fix graph build
- Loading branch information
Showing
4 changed files
with
22 additions
and
31 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
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 |
---|---|---|
@@ -1,19 +1,32 @@ | ||
#!/bin/sh | ||
#!/bin/bash -e | ||
|
||
# SPDX-FileCopyrightText: NOI Techpark <[email protected]> | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
mkdir -p data | ||
|
||
NORTH_EASTH_PBF=data/italy-nord-est.osm.pbf | ||
# OSM | ||
NORTH_EAST_URL=https://download.geofabrik.de/europe/italy/nord-est-latest.osm.pbf | ||
NORTH_EAST_PBF=data/italy-nord-est.osm.pbf | ||
SOUTH_TYROL_PBF=data/south-tyrol.osm.pbf | ||
|
||
# OTP | ||
OTP_IMAGE=docker.io/opentripplanner/opentripplanner:2.5.0_2024-01-19T14-50 | ||
|
||
wget -q --show-progress --no-clobber https://download.geofabrik.de/europe/italy/nord-est-latest.osm.pbf -O ${NORTH_EASTH_PBF} | ||
osmium extract ${NORTH_EASTH_PBF} --polygon south-tyrol.geojson -o ${SOUTH_TYROL_PBF} --overwrite | ||
# when on github actions then install the required tools | ||
if [ -n "${CI+isset}" ]; then | ||
sudo apt-get -qq install osmium-tool wget | ||
fi | ||
|
||
mkdir -p data | ||
|
||
if [ ! -f "${NORTH_EAST_PBF}" ]; then | ||
wget --progress=bar:force:noscroll ${NORTH_EAST_URL} -O ${NORTH_EAST_PBF} | ||
fi | ||
|
||
# cut out South Tyrol from the large North East Italy extract | ||
osmium extract ${NORTH_EAST_PBF} --polygon south-tyrol.geojson -o ${SOUTH_TYROL_PBF} --overwrite | ||
|
||
# actually do graph build | ||
docker run \ | ||
-v .:/var/opentripplanner/:z \ | ||
--rm \ | ||
|