Observed since 20 Oct, 16:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
a5-fast
Fast Python bindings for the A5 discrete global grid system
Fast Python bindings for the A5 discrete global grid system, powered by Rust and PyO3.
pip install a5_fast
import a5_fast
# Convert (lon, lat) to a cell index at resolution 5
cell = a5_fast.lonlat_to_cell(13.4, 52.5, 5)
# Get the centre of a cell
lon, lat = a5_fast.cell_to_lonlat(cell)
# Get the boundary polygon of a cell
boundary = a5_fast.cell_to_boundary(cell)
# Batch convert coordinates (flat list: [lon0, lat0, lon1, lat1, ...])
cells = a5_fast.lonlat_to_cell_batch([13.4, 52.5, -73.9, 40.7], 5)
# Traverse the hierarchy
parent = a5_fast.cell_to_parent(cell)
children = a5_fast.cell_to_children(cell)
# Neighbours within k hops
disk = a5_fast.grid_disk(cell, 1)
# Compact / uncompact cell sets
compacted = a5_fast.compact(cells)
expanded = a5_fast.uncompact(compacted, 5)
# Hex conversion
hex_str = a5_fast.u64_to_hex(cell)
cell = a5_fast.hex_to_u64(hex_str)
# Metadata
res = a5_fast.get_resolution(cell)
area = a5_fast.cell_area(5) # area in m² at resolution 5
n = a5_fast.get_num_cells(5) # total cells at resolution 5
base = a5_fast.get_res0_cells() # the 12 resolution-0 cells
MIT
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
bdist_wheel · 302.24 KB · Python cp310
bdist_wheel · 309.59 KB · Python cp310
bdist_wheel · 301.93 KB · Python cp311
bdist_wheel · 309.39 KB · Python cp311
bdist_wheel · 300.91 KB · Python cp312
bdist_wheel · 308.6 KB · Python cp312
bdist_wheel · 270.46 KB · Python cp313
bdist_wheel · 264.73 KB · Python cp313
bdist_wheel · 301.01 KB · Python cp313
bdist_wheel · 308.44 KB · Python cp313
bdist_wheel · 162.47 KB · Python cp313
sdist · 7.36 KB · Python source
Observed since 20 Oct, 16:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:86cbc3dee56483d5f10daaf3d8e302c8d73ef4ffd61c51a5f3186d9c167fd1e1