Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #45 from cobalt-uoft/buildings-polygon
Browse files Browse the repository at this point in the history
New buildings schema
  • Loading branch information
qasim committed Mar 24, 2016
2 parents 856e22b + 550b764 commit f60f8d7
Show file tree
Hide file tree
Showing 2 changed files with 2,836 additions and 323 deletions.
7 changes: 4 additions & 3 deletions src/api/buildings/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ var buildingSchema = new Schema({
name: String,
short_name: String,
campus: String,
lat: Number,
lng: Number,
address: {
street: String,
city: String,
province: String,
country: String,
postal: String
}
},
lat: Number,
lng: Number,
polygon: { type: Schema.Types.Mixed, default: [] }
})

buildingSchema.index({ code: 'text', name: 'text', short_name: 'text' })
Expand Down
Loading

0 comments on commit f60f8d7

Please sign in to comment.