Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 847 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 847 Bytes

Tile Utils

About

Tile Utils is a library for downloading map tiles from a specified endpoint

Installation

git clone https://github.com/rclosner/tile-utils.git
cd tile-utils
bundle install

Usage

./bin/tile-utils --lat-min 0 --lat-max 0 --lng-min 0 --lng-max 0 --path-template /local/path/{z}/{x}/{y}.png --url-template https://tile-server.com/{z}/{x}/{y}.png --zoom-min 10 --zoom-max 20

Options

  • --lat-min, -l : Minimum latitude
  • --lat-max, -a : Maximum latitude
  • --lng-min, -n : Minimum longitude
  • --lng-max, -g : Maximum longitude
  • --zoom-min, -z : Minimum zoom level
  • --zoom-max, -o : Maximum zoom level
  • --path-template, -p : Path to store map tiles
  • --url-template, -u : URL template for downloading
  • --help, -h: Show this message