-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopulatePlaces.js
More file actions
117 lines (106 loc) · 1.97 KB
/
populatePlaces.js
File metadata and controls
117 lines (106 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
var crypto = require('crypto'),
db = require('./db_connector.js');
db.models.places.remove({}).exec();
var place1 = {
name:'Lom',
description:'gerugfergrgregreibgebguiewbguiewui',
workingTime:8,
rating:6,
loc : {
type: "Point",
coordinates: [
43.775561, 23.724615 ]
},
type: "town",
likes: 5};
var place2 = {
name:'Sofia',
description:'gerugfergrgregreibgebguiewbguiewui',
workingTime:8,
rating:6,
loc : {
type: "Point",
coordinates: [
42.696465, 23.322129 ]
},
type: "town",
likes: 5};
var place3 = {
name:'Paradise',
description:'gerugfergrgregreibgebguiewbguiewui',
workingTime:8,
rating:5,
loc : {
type: "Point",
coordinates: [
42.656608,
23.317194 ]
},
type: "mall",
likes: 5};
var place4 = {
name:'The mall',
description:'gerugfergrgregreibgebguiewbguiewui',
workingTime:8,
rating:8,
loc : {
type: "Point",
coordinates: [
42.660016,
23.383455 ]
},
type: "mall",
likes: 4};
var place5 = {
name:'Zemqta i horata',
description:'gerugfergrgregreibgebguiewbguiewui',
workingTime:8,
rating:8,
loc : {
type: "Point",
coordinates: [
42.679304,
23.319812 ]
},
type: "museum",
likes: 30};
var place6 = {
name:'Historical museum',
description:'gerugfergrgregreibgebguiewbguiewui',
workingTime:8,
rating:6,
loc : {
type: "Point",
coordinates: [
42.649577,
23.292174 ]
},
type: "museum",
likes: 5};
var place7 = {
name:'London',
description:'gerugfergrgregreibgebguiewbguiewui',
workingTime:8,
rating:8,
loc : {
type: "Point",
coordinates: [
51.507351,
-0.127758 ]
},
type: "town",
likes: 30};
var place8 = {
name:'Plovdiv',
description:'Big city',
workingTime:8,
rating:6,
loc : {
type: "Point",
coordinates: [
42.135408,
24.745290 ]
},
type: "city",
likes: 5};
db.models.places.create([place1, place2, place3, place4, place5, place6, place7, place8]);