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.
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.