diff --git a/models/alertModel.js b/models/alertModel.js index ed3d8a3..db50f9c 100644 --- a/models/alertModel.js +++ b/models/alertModel.js @@ -12,7 +12,7 @@ var alertSchema = new Schema({ direction: { type: String }, city: { type: String }, district: { type: String }, - geolocation: { + geo: { lat: {type: Number}, long: {type: Number}, name: { type: String } diff --git a/models/eventModel.js b/models/eventModel.js index 9cd86a6..fd4857e 100644 --- a/models/eventModel.js +++ b/models/eventModel.js @@ -16,7 +16,7 @@ var eventSchema = new Schema({ direction: { type: String }, city: { type: String }, district: { type: String }, - geolocation: { + geo: { lat: {type: Number}, long: {type: Number}, name: { type: String} diff --git a/models/userModel.js b/models/userModel.js index 1922bfc..97a3b1d 100644 --- a/models/userModel.js +++ b/models/userModel.js @@ -32,7 +32,7 @@ var userSchema = new Schema({ direction: { type: String }, city: { type: String }, district: { type: String }, - geolocation: { + geo: { lat: {type: Number}, long: {type: Number}, name: { type: String}