Skip to content

Commit

Permalink
Add model for shapes.
Browse files Browse the repository at this point in the history
  • Loading branch information
samhashemi committed Jun 2, 2014
1 parent 600857b commit 60c08b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions models/Shape.js
@@ -0,0 +1,10 @@
var mongoose = require('mongoose')
, Shape = mongoose.model('Shape', new mongoose.Schema({
agency_key : { type: String, index: true }
, shape_id : { type: String, index: true }
, shape_pt_lat : { type: Number }
, shape_pt_lon : { type: Number }
, loc : { type: Array, index: '2d' }
, shape_pt_sequence : { type: Number }
, shape_dist_traveled : { type: Number }
}));

0 comments on commit 60c08b7

Please sign in to comment.