                 print("failure")
                 
             }
-
         }
-        
     }
     
     public func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int

            case .Success:
                if let value = response.result.value {
                    let json = JSON(value)
                    print(json)
                    let response = json["reponse"]
                    print("+==============")
                    print(json["response"]["venues"][1]["location"]["lat"].stringValue)
                    print(json["response"]["venues"][1]["location"]["lng"].stringValue)
                    print(json["response"]["venues"][1]["name"].stringValue)

                    
                }

        
        let locationToDipslay = arrayOfLocations[indexPath.row]
        cell.setCell(locationToDipslay.name, imageOfLocation: locationToDipslay.imageUrl, categoryOfLocation: locationToDipslay.category)
        
        return cell
    }
