 
         thisActionSheet.addAction(locationAction)
         
-        let directionAction = UIAlertAction(title: "Get directions", style: .Default, handler: nil)
-        
-//        let directionAction = UIAlertAction(
-//            title: "Get directions",
-//            style: .Default,
-//            handler: { action in
-//                // whatever else you need to do here
-//                print(listINeed)
-//            })
+//        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)
 


    @IBAction func presentExtraPostActions(sender: UIButton) {
        
        // Dimiss keyboard before doing anything else
        //
        // self.buttonNewCommentTextView.resignFirstResponder()
        
        let thisActionSheet = UIAlertController(title: nil, message: nil, preferredStyle: .ActionSheet)
        
        let shareAction = UIAlertAction(title: "Share post", style: .Default, handler: nil)

        thisActionSheet.addAction(shareAction)
        

                
                let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)
                
                activityVC.popoverPresentationController?.sourceView = button

                self.presentViewController(activityVC, animated: true, completion: nil)
            }
            else {
                let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil)
                
                activityVC.popoverPresentationController?.sourceView = button

                self.presentViewController(activityVC, animated: true, completion: nil)
            }
