mapcache

command module
v0.0.0-...-4ee8238 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2019 License: MIT Imports: 13 Imported by: 0

README

There are already many tools and servers for caching map tiles but nothing that worked just how I wanted, and I've also wanted to try using Go for a while, so this came together in a weekend (plus a bit, for cleaning up and fixing the code).

Simply, it listens for ZXY requests within a set boundary, checks if a copy exists on disk, and if not it will query the tile from LINZ/Koordinates and save the response for later requests.

Because it stores files on disk there is no cache expiration ability, just delete the files from disk. I'll soon have a script to purge tiles by region to deal with source data updates.

In operation

  • https://map.cazzaserver.com/linz_aerial/{zoom}/{x}/{y}.png for aerial images. Slippy map preview.
  • https://map.cazzaserver.com/linz_topo/{zoom}/{x}/{y}.png for topo maps, Slippy map preview.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL