zomato 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +3 -0
- data/Gemfile +6 -0
- data/MIT-LICENSE +22 -0
- data/README.md +59 -0
- data/Rakefile +13 -0
- data/lib/zomato.rb +8 -0
- data/lib/zomato/api.rb +14 -0
- data/lib/zomato/base.rb +20 -0
- data/lib/zomato/city.rb +51 -0
- data/lib/zomato/cuisine.rb +30 -0
- data/lib/zomato/locality.rb +14 -0
- data/lib/zomato/restaurant.rb +151 -0
- data/lib/zomato/subzone.rb +32 -0
- data/lib/zomato/zone.rb +30 -0
- data/spec/responses/cities.json +104 -0
- data/spec/responses/cuisines.json +310 -0
- data/spec/responses/locality.json +7 -0
- data/spec/responses/report_error.json +3 -0
- data/spec/responses/restaurant.json +46 -0
- data/spec/responses/restaurants.json +147 -0
- data/spec/responses/reviews.json +87 -0
- data/spec/responses/subzones.json +389 -0
- data/spec/responses/zones.json +67 -0
- data/spec/restaurant_collection_spec.rb +23 -0
- data/spec/spec_helper.rb +51 -0
- data/spec/zomato_spec.rb +195 -0
- data/zomato.gemspec +20 -0
- metadata +92 -0
@@ -0,0 +1,104 @@
|
|
1
|
+
{
|
2
|
+
"cities": [
|
3
|
+
{
|
4
|
+
"city": {
|
5
|
+
"id": 1,
|
6
|
+
"name": "Delhi NCR",
|
7
|
+
"has_nightlife": 1,
|
8
|
+
"latitude": "28.625789",
|
9
|
+
"longitude": "77.210276",
|
10
|
+
"show_zones": 1
|
11
|
+
}
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"city": {
|
15
|
+
"id": 3,
|
16
|
+
"name": "Mumbai",
|
17
|
+
"has_nightlife": 1,
|
18
|
+
"latitude": "19.017656",
|
19
|
+
"longitude": "72.856178",
|
20
|
+
"show_zones": 0
|
21
|
+
}
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"city": {
|
25
|
+
"id": 4,
|
26
|
+
"name": "Bangalore",
|
27
|
+
"has_nightlife": 1,
|
28
|
+
"latitude": "12.971606",
|
29
|
+
"longitude": "77.594376",
|
30
|
+
"show_zones": 0
|
31
|
+
}
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"city": {
|
35
|
+
"id": 2,
|
36
|
+
"name": "Kolkata",
|
37
|
+
"has_nightlife": 0,
|
38
|
+
"latitude": "22.572646",
|
39
|
+
"longitude": "88.363895",
|
40
|
+
"show_zones": 0
|
41
|
+
}
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"city": {
|
45
|
+
"id": 5,
|
46
|
+
"name": "Pune",
|
47
|
+
"has_nightlife": 0,
|
48
|
+
"latitude": "18.520469",
|
49
|
+
"longitude": "73.856620",
|
50
|
+
"show_zones": 0
|
51
|
+
}
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"city": {
|
55
|
+
"id": 6,
|
56
|
+
"name": "Hyderabad",
|
57
|
+
"has_nightlife": 0,
|
58
|
+
"latitude": "17.366",
|
59
|
+
"longitude": "78.476",
|
60
|
+
"show_zones": 0
|
61
|
+
}
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"city": {
|
65
|
+
"id": 7,
|
66
|
+
"name": "Chennai",
|
67
|
+
"has_nightlife": 0,
|
68
|
+
"latitude": "13.083889",
|
69
|
+
"longitude": "80.27",
|
70
|
+
"show_zones": 0
|
71
|
+
}
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"city": {
|
75
|
+
"id": 10,
|
76
|
+
"name": "Jaipur",
|
77
|
+
"has_nightlife": 0,
|
78
|
+
"latitude": "26.916087",
|
79
|
+
"longitude": "75.809695",
|
80
|
+
"show_zones": 0
|
81
|
+
}
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"city": {
|
85
|
+
"id": 11,
|
86
|
+
"name": "Ahmedabad",
|
87
|
+
"has_nightlife": 0,
|
88
|
+
"latitude": "23.042662",
|
89
|
+
"longitude": "72.566729",
|
90
|
+
"show_zones": 0
|
91
|
+
}
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"city": {
|
95
|
+
"id": 12,
|
96
|
+
"name": "Chandigarh",
|
97
|
+
"has_nightlife": 0,
|
98
|
+
"latitude": "30.737793",
|
99
|
+
"longitude": "76.77515",
|
100
|
+
"show_zones": 0
|
101
|
+
}
|
102
|
+
}
|
103
|
+
]
|
104
|
+
}
|
@@ -0,0 +1,310 @@
|
|
1
|
+
{
|
2
|
+
"cuisines": [
|
3
|
+
{
|
4
|
+
"cuisine": {
|
5
|
+
"cuisine_id": "1",
|
6
|
+
"cuisine_name": "American"
|
7
|
+
}
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"cuisine": {
|
11
|
+
"cuisine_id": "3",
|
12
|
+
"cuisine_name": "Asian"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"cuisine": {
|
17
|
+
"cuisine_id": "5",
|
18
|
+
"cuisine_name": "Bakery"
|
19
|
+
}
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"cuisine": {
|
23
|
+
"cuisine_id": "10",
|
24
|
+
"cuisine_name": "Bengali"
|
25
|
+
}
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"cuisine": {
|
29
|
+
"cuisine_id": "25",
|
30
|
+
"cuisine_name": "Chinese"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"cuisine": {
|
35
|
+
"cuisine_id": "27",
|
36
|
+
"cuisine_name": "Raw Meats"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"cuisine": {
|
41
|
+
"cuisine_id": "30",
|
42
|
+
"cuisine_name": "Cafe"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"cuisine": {
|
47
|
+
"cuisine_id": "35",
|
48
|
+
"cuisine_name": "Continental"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"cuisine": {
|
53
|
+
"cuisine_id": "38",
|
54
|
+
"cuisine_name": "European"
|
55
|
+
}
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"cuisine": {
|
59
|
+
"cuisine_id": "40",
|
60
|
+
"cuisine_name": "Fast Food"
|
61
|
+
}
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"cuisine": {
|
65
|
+
"cuisine_id": "45",
|
66
|
+
"cuisine_name": "French"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"cuisine": {
|
71
|
+
"cuisine_id": "48",
|
72
|
+
"cuisine_name": "Gujarati"
|
73
|
+
}
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"cuisine": {
|
77
|
+
"cuisine_id": "50",
|
78
|
+
"cuisine_name": "North Indian"
|
79
|
+
}
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"cuisine": {
|
83
|
+
"cuisine_id": "55",
|
84
|
+
"cuisine_name": "Italian"
|
85
|
+
}
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"cuisine": {
|
89
|
+
"cuisine_id": "60",
|
90
|
+
"cuisine_name": "Japanese"
|
91
|
+
}
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"cuisine": {
|
95
|
+
"cuisine_id": "65",
|
96
|
+
"cuisine_name": "Kashmiri"
|
97
|
+
}
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"cuisine": {
|
101
|
+
"cuisine_id": "66",
|
102
|
+
"cuisine_name": "Lebanese"
|
103
|
+
}
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"cuisine": {
|
107
|
+
"cuisine_id": "67",
|
108
|
+
"cuisine_name": "Korean"
|
109
|
+
}
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"cuisine": {
|
113
|
+
"cuisine_id": "68",
|
114
|
+
"cuisine_name": "Lounge"
|
115
|
+
}
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"cuisine": {
|
119
|
+
"cuisine_id": "69",
|
120
|
+
"cuisine_name": "Malaysian"
|
121
|
+
}
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"cuisine": {
|
125
|
+
"cuisine_id": "70",
|
126
|
+
"cuisine_name": "Mediterranean"
|
127
|
+
}
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"cuisine": {
|
131
|
+
"cuisine_id": "73",
|
132
|
+
"cuisine_name": "Mexican"
|
133
|
+
}
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"cuisine": {
|
137
|
+
"cuisine_id": "75",
|
138
|
+
"cuisine_name": "Mughlai"
|
139
|
+
}
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"cuisine": {
|
143
|
+
"cuisine_id": "80",
|
144
|
+
"cuisine_name": "Multi Cuisine"
|
145
|
+
}
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"cuisine": {
|
149
|
+
"cuisine_id": "81",
|
150
|
+
"cuisine_name": "Persian"
|
151
|
+
}
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"cuisine": {
|
155
|
+
"cuisine_id": "82",
|
156
|
+
"cuisine_name": "Pizza"
|
157
|
+
}
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"cuisine": {
|
161
|
+
"cuisine_id": "83",
|
162
|
+
"cuisine_name": "Sea Food"
|
163
|
+
}
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"cuisine": {
|
167
|
+
"cuisine_id": "84",
|
168
|
+
"cuisine_name": "Russian"
|
169
|
+
}
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"cuisine": {
|
173
|
+
"cuisine_id": "85",
|
174
|
+
"cuisine_name": "South Indian"
|
175
|
+
}
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"cuisine": {
|
179
|
+
"cuisine_id": "86",
|
180
|
+
"cuisine_name": "Sri Lankan"
|
181
|
+
}
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"cuisine": {
|
185
|
+
"cuisine_id": "90",
|
186
|
+
"cuisine_name": "Street Food"
|
187
|
+
}
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"cuisine": {
|
191
|
+
"cuisine_id": "93",
|
192
|
+
"cuisine_name": "Tibetan"
|
193
|
+
}
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"cuisine": {
|
197
|
+
"cuisine_id": "95",
|
198
|
+
"cuisine_name": "Thai"
|
199
|
+
}
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"cuisine": {
|
203
|
+
"cuisine_id": "100",
|
204
|
+
"cuisine_name": "Desserts"
|
205
|
+
}
|
206
|
+
},
|
207
|
+
{
|
208
|
+
"cuisine": {
|
209
|
+
"cuisine_id": "110",
|
210
|
+
"cuisine_name": "Others"
|
211
|
+
}
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"cuisine": {
|
215
|
+
"cuisine_id": "47",
|
216
|
+
"cuisine_name": "Goan"
|
217
|
+
}
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"cuisine": {
|
221
|
+
"cuisine_id": "7",
|
222
|
+
"cuisine_name": "Biryani"
|
223
|
+
}
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"cuisine": {
|
227
|
+
"cuisine_id": "71",
|
228
|
+
"cuisine_name": "Malwani"
|
229
|
+
}
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"cuisine": {
|
233
|
+
"cuisine_id": "2",
|
234
|
+
"cuisine_name": "Andhra"
|
235
|
+
}
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"cuisine": {
|
239
|
+
"cuisine_id": "99",
|
240
|
+
"cuisine_name": "Vietnamese"
|
241
|
+
}
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"cuisine": {
|
245
|
+
"cuisine_id": "105",
|
246
|
+
"cuisine_name": "Pub"
|
247
|
+
}
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"cuisine": {
|
251
|
+
"cuisine_id": "62",
|
252
|
+
"cuisine_name": "Kerala"
|
253
|
+
}
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"cuisine": {
|
257
|
+
"cuisine_id": "4",
|
258
|
+
"cuisine_name": "Arabian"
|
259
|
+
}
|
260
|
+
},
|
261
|
+
{
|
262
|
+
"cuisine": {
|
263
|
+
"cuisine_id": "87",
|
264
|
+
"cuisine_name": "Portuguese"
|
265
|
+
}
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"cuisine": {
|
269
|
+
"cuisine_id": "88",
|
270
|
+
"cuisine_name": "Rajasthani"
|
271
|
+
}
|
272
|
+
},
|
273
|
+
{
|
274
|
+
"cuisine": {
|
275
|
+
"cuisine_id": "22",
|
276
|
+
"cuisine_name": "Burmese"
|
277
|
+
}
|
278
|
+
},
|
279
|
+
{
|
280
|
+
"cuisine": {
|
281
|
+
"cuisine_id": "72",
|
282
|
+
"cuisine_name": "Mangalorean"
|
283
|
+
}
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"cuisine": {
|
287
|
+
"cuisine_id": "89",
|
288
|
+
"cuisine_name": "Spanish"
|
289
|
+
}
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"cuisine": {
|
293
|
+
"cuisine_id": "49",
|
294
|
+
"cuisine_name": "Hyderabadi"
|
295
|
+
}
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"cuisine": {
|
299
|
+
"cuisine_id": "6",
|
300
|
+
"cuisine_name": "Afghani"
|
301
|
+
}
|
302
|
+
},
|
303
|
+
{
|
304
|
+
"cuisine": {
|
305
|
+
"cuisine_id": "74",
|
306
|
+
"cuisine_name": "Mongolian"
|
307
|
+
}
|
308
|
+
}
|
309
|
+
]
|
310
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
{
|
2
|
+
"id": 315,
|
3
|
+
"name": "Sagar Ratna",
|
4
|
+
"url": "http://www.zomato.com/ncr/restaurants/south-delhi/mathura-road/sagar-ratna-315",
|
5
|
+
"location": {
|
6
|
+
"address": "B-1, A-11 Mohan Co-operative Ind Area, Mathura Road, New Delhi",
|
7
|
+
"locality": "Mathura Road",
|
8
|
+
"city": "Delhi",
|
9
|
+
"latitude": "28.5207270000",
|
10
|
+
"longitude": "77.2942530000"
|
11
|
+
},
|
12
|
+
"phone": "011 26955802, 011 26955803, 011 26955804",
|
13
|
+
"cuisines": "South Indian",
|
14
|
+
"timings": "11am - 11pm",
|
15
|
+
"avgCostForTwo": 450,
|
16
|
+
"isPureVeg": 1,
|
17
|
+
"hasBar": 0,
|
18
|
+
"hasDineIn": 1,
|
19
|
+
"hasDelivery": 1,
|
20
|
+
"acceptsCreditCards": 1,
|
21
|
+
"serviceCharge": null,
|
22
|
+
"vat": null,
|
23
|
+
"editorRating": {
|
24
|
+
"food": 2.5,
|
25
|
+
"service": 3.5,
|
26
|
+
"ambience": 2,
|
27
|
+
"overall": 3
|
28
|
+
},
|
29
|
+
"editorReview": "",
|
30
|
+
"userReviews": {
|
31
|
+
"count": 0
|
32
|
+
},
|
33
|
+
"discounts": [],
|
34
|
+
"photos": {
|
35
|
+
"0": {
|
36
|
+
"photo": {
|
37
|
+
"thumbUrl": "http://www.zomato.com/data/pictures/chains/305/1_thumb.jpg",
|
38
|
+
"url": "http://www.zomato.com/data/pictures/chains/305/1.jpg"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"photos_url": "http://www.zomato.com/ncr/restaurants/south-delhi/mathura-road/sagar-ratna-315/photos#tabtop"
|
42
|
+
},
|
43
|
+
"menu": {
|
44
|
+
"menu_url": "http://www.zomato.com/ncr/restaurants/south-delhi/mathura-road/sagar-ratna-315/menu#tabtop"
|
45
|
+
}
|
46
|
+
}
|