Skip to content

Commit

Permalink
Merge pull request #7 from bikehopper/dev
Browse files Browse the repository at this point in the history
Dev into master
  • Loading branch information
Andykmcc authored Feb 1, 2022
2 parents ac78d80 + 62764ab commit 765d179
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bay-area/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
graphhopper:

# OpenStreetMap input file PBF or XML, can be changed via command line -Ddw.graphhopper.datareader.file=some.pbf
datareader.file: /mnt/store/current-norcal-latest.osm.pbf
gtfs.file: /mnt/store/current-GTFSTransitData_RG.zip
datareader.file: /graphhopper/current-norcal-latest.osm.pbf
gtfs.file: /graphhopper/current-GTFSTransitData_RG.zip

# Local folder used by graphhopper to store its data
graph.location: graph-cache

Expand Down
10 changes: 9 additions & 1 deletion graphhopper.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
#!/bin/sh
exec java -jar *.jar server /graphhopper/bay-area/config.yml
echo 'Fetching osm.pbf...';
curl -J "http://graphhopper-data-server-svc.$POD_NAMESPACE.svc.cluster.local/geofabrik$GEOFABRIK_PATH" -o $OSM_PBF_FILE_NAME --silent;
echo 'Finished downloading osm.pbf.';

echo 'Fetching gtfs...';
curl -J "http://graphhopper-data-server-svc.$POD_NAMESPACE.svc.cluster.local/511$API_511_PATH" -o $API_511_FILE_NAME --silent;
echo 'Finished downloading gtfs.';

exec java -jar *.jar server /graphhopper/bay-area/config.yml

0 comments on commit 765d179

Please sign in to comment.