rochoa / quadtools

Work with quadkeys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quadtools

Work with quadkeys.

Quadkey from lon, lat, and zoom

>>> quadtools.quadkey(-3.7, 42.4, 5)
'03133'

Parent

>>> quadtools.parent('031332')
'03133'

Children

>>> quadtools.children('01')
['010', '011', '012', '013']

Siblings

>>> quadtools.siblings('011')
['010', '011', '012', '013']

Neighbors

>>> quadtools.neighbors('032')
['021', '030', '031', '023', '032', '033', '201', '210', '211']

About

Work with quadkeys

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%