$ npm install a5-js
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.
A5 is open source and licensed under the Apache 2.0 License.
© 2010 - cnpmjs.org x YWFE | Home | YWFE