Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makepath/tile-fetch
https://github.com/makepath/tile-fetch
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/makepath/tile-fetch
- Owner: makepath
- License: bsd-2-clause
- Created: 2021-03-17T04:02:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T21:25:19.000Z (over 2 years ago)
- Last Synced: 2024-08-01T13:37:45.127Z (3 months ago)
- Language: Python
- Size: 42 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DEPRECATED!!!!
This project is now deprecated...take a look at mapshader !(https://github.com/makepath/mapshader) for similiar functionality# 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
```bash
conda install -c parietal.io tile_fetch
```If not conda, you can use the setup.py file:
```bash
git clone https://github.com/parietal-io/tile-fetch.git
cd tile-fetch
python setup.py install
```## Basic Usage
```python
from tile_fetch import get_tilelng = -90.283741
lat = 29.890626
level = 7
tile = get_tile(lng, lat, level)
``````python
from tile_fetch import get_tiles_by_extentxmin = -90.283741
ymin = 29.890626
xmax = -89.912952
ymax = 30.057766
tiles = get_tiles_by_extent(xmin, ymin, xmax, ymax)
```