Build and validate GeoJSON with Node.js
Table of Contents
About the Project
The GeoJSON.js is designed to build and validate GeoJSON feature collections.
Getting Started
To get started with the GeoJSON.js, install geojsonjs
package to your project.
npm i geojsonjs
yarn add geojsonjs
Usage
import geojson from 'geojsonjs';
const geom = {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [11, 22],
},
},
],
};
const valid = geojson(geom).isValid;
Documentation
Documentation can be found here
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a
pull request. For more information, see the contribution guidelines.
License
This project is licensed under the MIT License.