Browse Source

travel geolocation added (lat and long), for the travel.from and travel.to

master
arnaucode 7 years ago
parent
commit
3f9c7d35e7
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      models/travelModel.js

+ 10
- 2
models/travelModel.js

@ -9,8 +9,16 @@ var travelSchema = new Schema({
type: mongoose.Schema.Types.ObjectId,
ref: 'userModel'
},
from: { type: String, required: true },
to: { type: String, required: true },
from: {
lat: {type: Number},
long: {type: Number},
name: { type: String, required: true }
},
to: {
lat: {type: Number},
long: {type: Number},
name: { type: String, required: true }
},
date: { type: Date },
periodic: { type: Boolean },
generateddate: { type: Date },

Loading…
Cancel
Save