forked from kaylamatteo/Team-Woof
/
data.js
265 lines (248 loc) · 6.9 KB
/
data.js
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
dataArr = [
{
"id": 0,
"name": "The Best of Zilker Park",
"description": "A couple of perfect hours in Austin, TX",
"tags" : ["Cheap", "Nature", "Park", "Sunshine"],
"city": "Austin",
"time": 180,
"cost": 7,
"location": "30.267219, -97.764799",
"image":"http://www.edwardsaquifer.net/images/barton_main_spring.jpg (166KB)",
"rating": [3, 4, 4, 5, 5, 5, 3],
"steps" : [
{
"number":0,
"description":"Go take a dip at Barton Springs.",
"location": "30.264439, -97.771279",
"time": 90,
"cost": 4,
},
{
"number":1,
"description":"Drink some watermelon juice from the snack bar.",
"location": "30.264439, -97.771279",
"time": 30,
"cost": 3,
},
{
"number":2,
"description":"Play Frisbee in the park.",
"location": "30.267812, -97.774069",
"time": 60,
"cost": 0,
}
]
},
{
"id": 1,
"name": "Scavenging the Barren Wasteland",
"description": "Ian's Grand Oklahoma City Adventure",
"tags" : ["Cheap", "Food", "Tacos", "Art", "Exercise"],
"city": "Oklahoma City",
"time": 240,
"cost": 33,
"location": "35.456187, -97.520540",
"image": "http://s3-media1.fl.yelpcdn.com/bphoto/_O7_UgvvXTZtDLt6ujPeyA/348s.jpg",
"rating": [5, 1, 1, 1, 1, 1, 1],
"steps" : [
{
"number":0,
"description":"Go to the worst Taco Bell in Oklahoma and have 2 bean burritos.",
"location": "35.321406, -97.486980",
"time": 30,
"cost": 3,
},
{
"number":1,
"description":"Head to Supermercados Morelos and order the best pork tacos in Oklahoma.",
"location": "35.344155, -97.495668",
"time": 30,
"cost": 5,
},
{
"number":2,
"description":"Go to Bricktown and find a graffiti octopus.",
"location": "35.465860, -97.508297",
"time": 90,
"cost": 0,
},
{
"number":3,
"description":"Find Rocktown gym and spend some time rock climbing.",
"location": "35.459969, -97.507087",
"time": 90,
"cost": 25,
}
],
},
{
"id": 2,
"name": "Upper Manhattan Morning",
"description": "A morning stroll for history lovers",
"tags": ["Nature", "Park", "Museum", "Food",]
"city": "New York",
"time": 210,
"cost": 30,
"location": "40.778023, -73.969303",
"image": "http://graphics8.nytimes.com/images/2012/11/15/arts/15artsbeat-museum/15artsbeat-museum-blog480.jpg",
"rating": [4, 4, 4, 5, 5, 5, 4],
"steps": [
{
"number":0,
"description":"Grab a bagel with lox and coffee at historic Zabar's.",
"location": "40.784978, -73.979679",
"time": 30,
"cost": 5,
}
{
"number":1,
"description":"Take a leisurely stroll through Central Park.",
"location": "40.778023, -73.969303",
"time": 60,
"cost": 0,
}
{
"number":2,
"description":"Spend a few hours browsing the Metropolitan Mueseum of Art.",
"location": "40.779623, -73.963255",
"time": 120,
"cost": 25,
}
]
},
{
"id": 3,
"name": "A Sunny Day in West Los Angeles",
"description": "Beach, shopping, and amusement in eternally sunny LA",
"tags" : ["Nature", "Shopping", "Beach", "Fun", "Food"],
"city": "Los Angeles",
"time": 660,
"cost": 70,
"location": "34.013250, -118.501021",
"image":"http://www.westland.net/piercam/images/santa-monica-pier-cam.jpg",
"rating": [3, 5, 5, 5, 5, 5, 5],
"steps" : [
{
"number":0,
"description":"Start with a hearty diner breakfast at Cora's Coffee Shop.",
"location": "34.008402, -118.491312",
"time": 60,
"cost": 15,
},
{
"number":1,
"description":"Window shop and grab a picnic lunch on the Third Street Promenade.",
"location": "34.016466, -118.496891",
"time": 120,
"cost": 10,
},
{
"number":2,
"description":"Spend the afternoon at Santa Monica Beach.",
"location": "34.015881, -118.504753",
"time": 300,
"cost": 0,
},
{
"number":3,
"description":"Ride the ferris wheel on Santa Monica Pier.",
"location": "34.010114, -118.496379",
"time": 60,
"cost": 5,
},
{
"number":4,
"description":"Grab dinner and drinks at the swanky Viceroy Hotel.",
"location": "34.008277, -118.490306",
"time": 120,
"cost": 40,
},
],
},
{
"id": 3,
"name": "An Afternoon in Salt Lake City",
"description": "Pizza, Religion, and The Great Salt Lake.",
"tags" : ["Architechture", "Lake", "Nature", "Religion", "Food"],
"city": "Salt Lake City",
"time": 300,
"cost": 16,
"location": "40.730161, -111.897756",
"image":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSDEDEKZs7o_1lv1uqI9idscw2ACNAfhgKQGVPtr80xiZCixs_wiw",
"rating": [5, 5, 5, 5, 5, 5, 5],
"steps" : [
{
"number":0,
"description":"Snap some photos of historic Temple Square.",
"location": "40.773891, -111.890925",
"time": 30,
"cost": 0,
},
{
"number":1,
"description":"Eat some of the best pizza around at The Pie.",
"location": "40.626374, -111.858342",
"time": 90,
"cost": 10,
},
{
"number":2,
"description":"Take in the Great Lake at Antelope Island State Park.",
"location": "40.972657, -112.216952",
"time": 380,
"cost": 6,
},
],
},
{
"id": 4,
"name": "Best Day Ever",
"description": "A whole day of adventure in the Florida Keys.",
"tags" : ["Nature", "Food", "Animals", "Sunshine", "Beach"],
"city": "Marathon Key",
"time": 360,
"cost": 58,
"location": "24.711602, -81.089818",
"image": "http://www.floridakeys.com/florida-keys-photos/snorkelinggirl.jpg",
"steps" : [
{
"number":0,
"description":"Start with a Spirit Snorkeling tour, where you'll see tons of wildlife in the reef.",
"location": "24.709702, -81.110769",
"time": 120,
"cost": 20,
},
{
"number":1,
"description":"Grab a cubano and a fresh papaya juice at Juice Paradise",
"location": "24.709843, -81.099712",
"time": 60,
"cost": 10,
},
{
"number":2,
"description":"Hang out with dolphins at the Dolphin Research Center",
"location": "24.768238, -80.945364",
"time": 120,
"cost": 28,
},
{
"number":3,
"description":"Catch the sunset on Sombrero Beach.",
"location": "24.692833, -81.086200",
"time": 60,
"cost": 0,
}
],
},
]
var mongoose = require('mongoose');
var models = require('/server/models.js');
var Quest = models.Quest;
var fetcher = function(cb){
Quest.collection.insert(dataArr, function(result){
console.log('done');
});
}
fetcher();