$0 Delivery Fee
On your first order
Earn Rewards
With every meal
Support Local
Majuro Restaurants
Featured Restaurants Near You
Set your location to see nearby restaurants.
prepare(" SELECT r.id, r.name, r.image_url, AVG(rt.rating) as average_rating, (6371 * acos(cos(radians(?)) * cos(radians(latitude)) * cos(radians(longitude) - radians(?)) + sin(radians(?)) * sin(radians(latitude)))) AS distance FROM restaurants r LEFT JOIN ratings rt ON r.id = rt.restaurant_id WHERE latitude IS NOT NULL AND longitude IS NOT NULL GROUP BY r.id HAVING distance < ? ORDER BY distance LIMIT 12 "); $stmt->execute([$lat, $lng, $lat, $radius]); $restaurants = $stmt->fetchAll(PDO::FETCH_ASSOC); // Get cuisines for each restaurant $cuisine_sql = "SELECT c.name FROM cuisines c JOIN restaurant_cuisines rc ON c.id = rc.cuisine_id WHERE rc.restaurant_id = ?"; $cuisine_stmt = $db->prepare($cuisine_sql); foreach ($restaurants as &$restaurant) { $cuisine_stmt->execute([$restaurant['id']]); $restaurant['cuisines'] = $cuisine_stmt->fetchAll(PDO::FETCH_COLUMN); } echo json_encode($restaurants); exit; } ?>
On your first order
With every meal
Majuro Restaurants
Set your location to see nearby restaurants.