         return cell
     }
     
-    func openDirectionsURL(sender: UIBarButtonItem) {
-        
-        let reportId = sender.tag
-        let report = self.reports[reportId]
+//    func openDirectionsURL(sender: UIBarButtonItem) {
+    func openDirectionsURL(postId: Int) {
+    
+//        let reportId = sender.tag
+        let report = self.reports[postId]
         
         let reportGeometry = report.objectForKey("geometry")
         let reportGeometries = reportGeometry!.objectForKey("geometries")

        
    }

    @IBAction func shareButtonClicked(sender: UIButton) {
        
        print("sender.tag \(sender.tag)")
        
        let _thisReport = JSON(self.reports[(sender.tag)])
        let reportId: String = "\(_thisReport["id"])"
        var objectsToShare: [AnyObject] = [AnyObject]()
        let reportURL = NSURL(string: "https://www.waterreporter.org/community/reports/" + reportId)


        thisActionSheet.addAction(locationAction)
        
//        let directionAction = UIAlertAction(title: "Get directions", style: .Default, handler: nil)
        
        let directionAction = UIAlertAction(
            title: "Get directions",
            style: .Default,
            handler: { action in
                self.openDirectionsURL(postIndex)
            }
        )

        thisActionSheet.addAction(directionAction)

