Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 928 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 928 Bytes

umap-overpass-cacher

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.

Disclaimer

This script only download and store queries, you'll have to set up your own web server (eg apache, nginx...)!

Instructions

  1. Clone this repository:
git clone https://github.com/mapcolabora/umap-overpass-cacher
  1. Copy config.sh.sample into config.sh and set up your settings.

  2. Write down your overpass-query-urls in the file urls.txt one per line.

  3. 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 the urls.txt file.

  4. Run once ./run.sh --now in order to cache all the urls for the first time.

  5. Set up a cron task to run periodicaly ./run.sh whitout parameters.