Skip to content

Commit

Permalink
Update main.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour authored Sep 26, 2024
1 parent 85a17cf commit 858f53a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e

## get real time data via Overpass API
curl --output chattanooga.osm "https://overpass-api.de/api/interpreter?data=%2F%2F%5Bout%3Acsv%28%27name%27%2C%3A%3Alat%2C%3A%3Alon%2C%27cuisine%27%3Btrue%3B%27%2C%27%29%5D%3B%0A%0Aarea%0A%20%20%5B%22wikidata%22%3D%22Q186702%22%5D%0A%20%20%5B%22name%22%3D%22Chattanooga%22%5D-%3E.a%3B%0A%0Anwr%28area.a%29%3B%0A%0A%2F%2F%20calculate%20centroid%20of%20ways%20and%20relations%0Aout%20body%20center%3B"
# curl --output chattanooga.osm "https://overpass-api.de/api/interpreter?data=%2F%2F%5Bout%3Acsv%28%27name%27%2C%3A%3Alat%2C%3A%3Alon%2C%27cuisine%27%3Btrue%3B%27%2C%27%29%5D%3B%0A%0Aarea%0A%20%20%5B%22wikidata%22%3D%22Q186702%22%5D%0A%20%20%5B%22name%22%3D%22Chattanooga%22%5D-%3E.a%3B%0A%0Anwr%28area.a%29%3B%0A%0A%2F%2F%20calculate%20centroid%20of%20ways%20and%20relations%0Aout%20body%20center%3B"

# # create dataset using tilemaker
# docker run --rm -v $PWD:/data ghcr.io/systemed/tilemaker:master /data/chattanooga.xml --output /data/chattanooga2.pmtiles
Expand All @@ -14,10 +14,10 @@ curl --output chattanooga.osm "https://overpass-api.de/api/interpreter?data=%2F%

# ls -alsh .

# YESTERDAY=$(date '+%Y%m%d' -d "yesterday")
YESTERDAY=$(date '+%Y%m%d' -d "yesterday")

# ./pmtiles extract https://build.protomaps.com/$YESTERDAY.pmtiles chattanooga.pmtiles --bbox=-85.5754812346649,34.990282262603216,-85.00603778143356,35.30248201906815
./pmtiles extract https://build.protomaps.com/$YESTERDAY.pmtiles chattanooga.pmtiles --bbox=-85.5754812346649,34.990282262603216,-85.00603778143356,35.30248201906815

# # cleanup
# rm pmtiles
# cleanup
rm pmtiles

0 comments on commit 858f53a

Please sign in to comment.