Added name of stations
This commit is contained in:
parent
4db191ca0f
commit
3e38fc79b9
6 changed files with 394 additions and 54 deletions
|
@ -4,6 +4,7 @@
|
|||
module.exports = mongoose => {
|
||||
const schema = new mongoose.Schema({
|
||||
stationId: String,
|
||||
name: String,
|
||||
location: {
|
||||
type: { type: String },
|
||||
coordinates: []
|
||||
|
@ -29,14 +30,3 @@ module.exports = mongoose => {
|
|||
|
||||
return Stations;
|
||||
};
|
||||
|
||||
// INFO:
|
||||
/*
|
||||
schema.location = {
|
||||
type: 'Point',
|
||||
coordinates: [
|
||||
Number(longitude),
|
||||
Number(latitude)
|
||||
]
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue