Skip to main content

Hierarchical geospatial indexing system for square cells in Web Mercator projection

Project description


Python library for quadbin.


pip install quadbin


>>> import quadbin
>>> longitude = -3.7038
>>> latitude =  40.4168
>>> resolution = 10
>>> quadbin.point_to_cell(longitude, latitude, resolution)


cell_is_valid(index: int) -> bool
cell_to_tile(index: int) -> {"z","x","y"}
tile_to_cell(z: int, x: int, y: int) -> [longitude, latitude]
point_to_cell(longitude: float, latitude: float, resolution: int) -> int
get_resolution(index: int) -> int


Make commands:

  • init: create the environment and install dependencies
  • lint: run linter (flake8) + fix (black)
  • test: run tests (pytest)
  • publish-pypi: publish package in
  • publish-test-pypi: publish package in
  • clean: remove the environment

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quadbin-0.1.0a1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

quadbin-0.1.0a1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page