Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongoose-geojson-schema

About

Mongoose JS SchemaTypes for GeoJSON

Usage

var mongoose = require('mongoose');
require('mongoose-geojson-schema')(mongoose);

var schema = new mongoose.Schema({
	Point:mongoose.SchemaTypes.GeoJSONPoint,
	Geo:mongoose.SchemaTypes.GeoJSON,
	PointReq: {type:mongoose.SchemaTypes.GeoJSONPoint, required: true}
});

Supported Types

Point MultiPoint LineString MultiLineString Polygon MultiPolygon

License

See LICENSE for more info.

About

Schema definitions for GeoJSON types for use with Mongoose JS

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages