thesentinelproject / threatwiki_node

Threatwiki - genocide risk tracking and visualization platform to help monitor communities at risk of genocide around the world
Other
63 stars 25 forks source link

Convert location to embedded object and include title along with it. #13

Closed abhishekbh closed 12 years ago

abhishekbh commented 12 years ago

One of the API requirements is to get datapoint by location. To do this, we need to have a location object which looks like this: Location: { title: { type: String, required: true } , latitude: { type: String, required: true } , longitude: { type: String, required: true } }

So that we can search by title, it's best to convert this to an embedded object within the Datapoint model.