
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
a5-to-geojson
Advanced tools
A lightweight utility library for converting A5 cells to GeoJSON features and geometries, along with additional tools for working with the [A5 geoindexing system](https://a5geo.org/).
A lightweight utility library for converting A5 cells to GeoJSON features and geometries, along with additional tools for working with the A5 geoindexing system.
Install the library:
npm install a5-to-geojson
or
pnpm add a5-to-geojson
Here is an example of how to use the library:
import {
coordToA5,
a5ToCoord,
a5ToPointFeature,
a5ToPolygonFeature,
} from 'a5-to-geojson';
// Convert coordinates to an A5 cell
const coord = [-3.6886, 40.4201]; // Madrid [longitude, latitude]
const resolution = 9;
const a5Cell = coordToA5(coord, resolution);
console.log('A5 Cell:', a5Cell);
// Convert an A5 cell back to coordinates
const backToCoord = a5ToCoord(a5Cell);
console.log('Coordinates:', backToCoord);
// Convert an A5 cell to a GeoJSON Point feature
const pointFeature = a5ToPointFeature(a5Cell);
console.log('GeoJSON Point Feature:', pointFeature);
// Convert an A5 cell to a GeoJSON Polygon feature
const polygonFeature = a5ToPolygonFeature(a5Cell);
console.log('GeoJSON Polygon Feature:', polygonFeature);
See DOCS
This project is licensed under the MIT License.
FAQs
A lightweight utility library for converting A5 cells to GeoJSON features and geometries, along with additional tools for working with the [A5 geoindexing system](https://a5geo.org/).
The npm package a5-to-geojson receives a total of 1 weekly downloads. As such, a5-to-geojson popularity was classified as not popular.
We found that a5-to-geojson demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.