Skip to content

iott/geojsonValidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Validates geojson using is-my-json-valid. Based off of the geojsonlint design & adapted as a module.

Installation

npm install geojsonvalidator

usage

var geoval = require("geojsonvalidator");

var polygon = { "type": "Polygon",
    "coordinates": 
    [
    	[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]
    ]
}

geoval.validate(polygon)
//returns true or returns false with helpful error message:

About

a module that validates geojson objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published