a5-js
A5 - Global Pentagonal Geospatial Index
Last updated a month ago by GitHub Actions .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install a5-js 
SYNC missed versions from official npm registry.
A5 logo made of pentagonal cells flying onto a globe

A5 is a geospatial index that partitions the world into pentagonal cells. The cells are available at 31 resolution levels, from a handful covering the whole world down to less than 30mm², and every cell at a given resolution has exactly the same area. Each cell is identified by a 64-bit integer, which is frozen from v1.0: an A5 cell ID stored today will refer to the same place in the future.

Once data is in cells, very different datasets can be joined, aggregated and compared directly: points can be counted per cell, as with the density of holiday rentals across a city, and regions such as countries or parcels of land become coverings, sets of cells which support union, intersection and difference.

Key strengths

  • Equal area, single topology: every cell is an exactly equal-area pentagon with 5 neighbors, so aggregates are free of bias from unequal cell sizes. See A5 vs H3.
  • Built for big data: cell IDs follow a space-filling curve that never crosses itself, so polygons and coverings are compact ID ranges. Billions of cells can be filled, combined and counted in seconds.
  • Fast & rich API: high-level functions for indexing, hierarchy, traversal and coverings, with a native Rust core.
  • Strong ecosystem: official libraries for TypeScript, Python and Rust, with DuckDB, PostgreSQL, R, QGIS and deck.gl integrations. See the Ecosystem.

Where to start

A5 is open source and licensed under the Apache 2.0 License.

Links

Current Tags

  • 1.0.0-beta.4                                ...           beta (a month ago)
  • 1.0.0                                ...           latest (a month ago)

30 Versions

  • 1.0.0                                ...           a month ago
  • 1.0.0-beta.4                                ...           a month ago
  • 1.0.0-beta.3                                ...           a month ago
  • 1.0.0-beta.2                                ...           2 months ago
  • 1.0.0-beta.1                                ...           2 months ago
  • 0.10.1                                ...           2 months ago
  • 0.10.0                                ...           3 months ago
  • 0.9.0                                ...           5 months ago
  • 0.8.0                                ...           6 months ago
  • 0.7.3                                ...           8 months ago
  • 0.7.2                                ...           8 months ago
  • 0.7.1                                ...           9 months ago
  • 0.7.0                                ...           9 months ago
  • 0.6.1                                ...           a year ago
  • 0.6.0                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.2                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.4                                ...           2 years ago
  • 0.1.3                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Total 126
Today 0
This Week 0
This Month 64
Last Day 0
Last Week 30
Last Month 62
Dependencies (0)
None
Dev Dependencies (8)

© 2010 - cnpmjs.org x YWFE | Home | YWFE