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.sampleintoconfig.shand set up your settings. -
Write down your overpass-query-urls in the file
urls.txtone per line. -
Run
./run.sh --dry-runto find the output path of the cached url. They are procesed in the same order as they are written in theurls.txtfile. -
Run once
./run.sh --nowin order to cache all the urls for the first time. -
Set up a cron task to run periodicaly
./run.shwhitout parameters.