Mongoose JS SchemaTypes for GeoJSON
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}
});
Point MultiPoint LineString MultiLineString Polygon MultiPolygon
See LICENSE for more info.