Simplistic Overpass API queries cacher
We have created this script in order to avoid increase speed response of overpass queries in dynamical Umap and reduce the number of queries sent to the main server.
This script only download and store queries, you'll have to set up your own web server (eg apache, nginx...)!
- Clone this repository:
git clone https://github.com/mapcolabora/umap-overpass-cacher
-
Copy
config.sh.sample
intoconfig.sh
and set up your settings. -
Write down your overpass-query-urls in the file
urls.txt
one per line. -
Run
./run.sh --dry-run
to find the output path of the cached url. They are procesed in the same order as they are written in theurls.txt
file. -
Run once
./run.sh --now
in order to cache all the urls for the first time. -
Set up a cron task to run periodicaly
./run.sh
whitout parameters.