Added name of stations

This commit is contained in:
Damien Broqua 2020-03-06 15:49:16 +01:00
parent 4db191ca0f
commit 3e38fc79b9
6 changed files with 394 additions and 54 deletions

View file

@ -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)
]
}
*/