geojson-parser-js
A Node.js module to generate a geojson or validate it. This module also let you easily parse geometries from geojson.
Installation
npm install geojson-parser-js --saveyarn add geojson-parser-jsbower install geojson-parser-js --save
Demo
You can use the demo at https://www.geojson.in/
Usage
TypeScript
;;
Output should be 'true'
;;;
Output should be an instance of FeatureCollection class
;;;
Input should be an instance of FeatureCollectionOutput should be an Geojson string
Javascript
var geojson = ;var isValid = geojson;
Output should be 'true'
var geojson = ;var features = geojson;
Output should be an instance of FeatureCollection class
var geojson = ;var geojsonStr = geojson;
Input should be an instance of FeatureCollectionOutput should be an Geojson string
AMD
;
Test
npm run test
Support
You can directly send any bug/issue or suggestion to my personal email id: shubhgupta4u@gmail.com.