ianthomas23 / tile-fetch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tile-fetch

Small and simple library for getting map tiles from popular tile map services.

This library was based one of my old blog posts here: https://bcdcspatial.blogspot.com/2012/02/onlineoffline-mapping-finding-tile-urls.html

Installation

Conda is the best way to install the library in your local conda environment

conda install -c parietal.io tile_fetch

If not conda, you can use the setup.py file:

git clone https://github.com/parietal-io/tile-fetch.git
cd tile-fetch
python setup.py install

Basic Usage

from tile_fetch import get_tile

lng = -90.283741
lat = 29.890626
level = 7
tile = get_tile(lng, lat, level)
from tile_fetch import get_tiles_by_extent

xmin = -90.283741
ymin = 29.890626
xmax = -89.912952
ymax = 30.057766
tiles = get_tiles_by_extent(xmin, ymin, xmax, ymax)

About

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 99.8%Language:Shell 0.2%