{"action":"created","comment":{"url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/comments/87686144","pull_request_review_id":8292359,"id":87686144,"diff_hunk":"@@ -101,5 +123,186 @@ class StopsViewController: UIViewController, GMSMapViewDelegate {\n         let update = GMSCameraUpdate.setTarget(CLLocationCoordinate2DMake(newLat, newLong))\n         mapView.animate(with: update)\n     }\n+    \n+    \n+    /*This function displays/hides the popUpView based on tapping the marker.*/\n+    func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -> Bool {\n+        if currentMarker == nil {\n+            currentMarker = marker\n+            popUp(stop: marker.userData as! Stop)\n+        } else if currentMarker.position.latitude != marker.position.latitude {\n+            dismissPopUpView(marker: marker, fullyDismissed: false)\n+        } else {\n+            dismissPopUpView(marker: marker, fullyDismissed: true)\n+        }\n+        return true\n+    }\n+    \n+    \n+    func directionsButtonPressed(sender: UIButton) {\n+        //prepare to redirect user to map app\n+        let location = selectedStop.getLocation()\n+        if UIApplication.shared.canOpenURL(URL(string: \"comgooglemaps://\")!) {\n+            if #available(iOS 10.0, *) {\n+                UIApplication.shared.open(URL(string:\n+                    \"comgooglemaps://?saddr=&daddr=\\(location.lat),\\(location.long)&directionsmode=walking\")!)\n+            } else {\n+                UIApplication.shared.openURL(URL(string:\n+                    \"comgooglemaps://?saddr=&daddr=\\(location.lat),\\(location.long)&directionsmode=walking\")!)\n+            }","path":"big-red-shuttle/StopsViewController.swift","position":136,"original_position":136,"commit_id":"e1ec6639f0db57d1f4789faf21b5100c79d5ab91","original_commit_id":"e1ec6639f0db57d1f4789faf21b5100c79d5ab91","user":{"login":"AAAstorga","id":15990084,"avatar_url":"https://avatars.githubusercontent.com/u/15990084?v=3","gravatar_id":"","url":"https://api.github.com/users/AAAstorga","html_url":"https://github.com/AAAstorga","followers_url":"https://api.github.com/users/AAAstorga/followers","following_url":"https://api.github.com/users/AAAstorga/following{/other_user}","gists_url":"https://api.github.com/users/AAAstorga/gists{/gist_id}","starred_url":"https://api.github.com/users/AAAstorga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AAAstorga/subscriptions","organizations_url":"https://api.github.com/users/AAAstorga/orgs","repos_url":"https://api.github.com/users/AAAstorga/repos","events_url":"https://api.github.com/users/AAAstorga/events{/privacy}","received_events_url":"https://api.github.com/users/AAAstorga/received_events","type":"User","site_admin":false},"body":"One of them is for ios10+ which is `shared.open` while the other is for ios9 and below `shared.openURL`","created_at":"2016-11-12T04:03:27Z","updated_at":"2016-11-12T04:03:27Z","html_url":"https://github.com/cuappdev/big-red-shuttle/pull/13#discussion_r87686144","pull_request_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/comments/87686144"},"html":{"href":"https://github.com/cuappdev/big-red-shuttle/pull/13#discussion_r87686144"},"pull_request":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/13","id":93426550,"html_url":"https://github.com/cuappdev/big-red-shuttle/pull/13","diff_url":"https://github.com/cuappdev/big-red-shuttle/pull/13.diff","patch_url":"https://github.com/cuappdev/big-red-shuttle/pull/13.patch","issue_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/13","number":13,"state":"open","locked":false,"title":"Austin/stop pop up","user":{"login":"AAAstorga","id":15990084,"avatar_url":"https://avatars.githubusercontent.com/u/15990084?v=3","gravatar_id":"","url":"https://api.github.com/users/AAAstorga","html_url":"https://github.com/AAAstorga","followers_url":"https://api.github.com/users/AAAstorga/followers","following_url":"https://api.github.com/users/AAAstorga/following{/other_user}","gists_url":"https://api.github.com/users/AAAstorga/gists{/gist_id}","starred_url":"https://api.github.com/users/AAAstorga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AAAstorga/subscriptions","organizations_url":"https://api.github.com/users/AAAstorga/orgs","repos_url":"https://api.github.com/users/AAAstorga/repos","events_url":"https://api.github.com/users/AAAstorga/events{/privacy}","received_events_url":"https://api.github.com/users/AAAstorga/received_events","type":"User","site_admin":false},"body":"Added the pop up view. Still need to do work once Kevin merges his in but left comments on where/what needs to be done. ","created_at":"2016-11-12T03:35:24Z","updated_at":"2016-11-12T04:03:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb15198d07e6251dd413a5f4e6037b5f60e911d9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/13/commits","review_comments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/13/comments","review_comment_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/13/comments","statuses_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/statuses/e1ec6639f0db57d1f4789faf21b5100c79d5ab91","head":{"label":"cuappdev:austin/stopPopUp","ref":"austin/stopPopUp","sha":"e1ec6639f0db57d1f4789faf21b5100c79d5ab91","user":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"repo":{"id":70748937,"name":"big-red-shuttle","full_name":"cuappdev/big-red-shuttle","owner":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuappdev/big-red-shuttle","description":null,"fork":false,"url":"https://api.github.com/repos/cuappdev/big-red-shuttle","forks_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/forks","keys_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/teams","hooks_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/hooks","issue_events_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/events{/number}","events_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/events","assignees_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/assignees{/user}","branches_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/branches{/branch}","tags_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/tags","blobs_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/statuses/{sha}","languages_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/languages","stargazers_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/stargazers","contributors_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/contributors","subscribers_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/subscribers","subscription_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/subscription","commits_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/contents/{+path}","compare_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/merges","archive_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/downloads","issues_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues{/number}","pulls_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls{/number}","milestones_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/milestones{/number}","notifications_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/labels{/name}","releases_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/releases{/id}","deployments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/deployments","created_at":"2016-10-12T23:04:21Z","updated_at":"2016-10-13T21:41:13Z","pushed_at":"2016-11-12T03:35:25Z","git_url":"git://github.com/cuappdev/big-red-shuttle.git","ssh_url":"git@github.com:cuappdev/big-red-shuttle.git","clone_url":"https://github.com/cuappdev/big-red-shuttle.git","svn_url":"https://github.com/cuappdev/big-red-shuttle","homepage":null,"size":129118,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"cuappdev:master","ref":"master","sha":"9b532f3714220923ef23530710b727a99b3983f1","user":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"repo":{"id":70748937,"name":"big-red-shuttle","full_name":"cuappdev/big-red-shuttle","owner":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuappdev/big-red-shuttle","description":null,"fork":false,"url":"https://api.github.com/repos/cuappdev/big-red-shuttle","forks_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/forks","keys_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/teams","hooks_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/hooks","issue_events_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/events{/number}","events_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/events","assignees_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/assignees{/user}","branches_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/branches{/branch}","tags_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/tags","blobs_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/statuses/{sha}","languages_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/languages","stargazers_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/stargazers","contributors_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/contributors","subscribers_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/subscribers","subscription_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/subscription","commits_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/contents/{+path}","compare_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/merges","archive_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/downloads","issues_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues{/number}","pulls_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls{/number}","milestones_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/milestones{/number}","notifications_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/labels{/name}","releases_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/releases{/id}","deployments_url":"https://api.github.com/repos/cuappdev/big-red-shuttle/deployments","created_at":"2016-10-12T23:04:21Z","updated_at":"2016-10-13T21:41:13Z","pushed_at":"2016-11-12T03:35:25Z","git_url":"git://github.com/cuappdev/big-red-shuttle.git","ssh_url":"git@github.com:cuappdev/big-red-shuttle.git","clone_url":"https://github.com/cuappdev/big-red-shuttle.git","svn_url":"https://github.com/cuappdev/big-red-shuttle","homepage":null,"size":129118,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/13"},"html":{"href":"https://github.com/cuappdev/big-red-shuttle/pull/13"},"issue":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/13"},"comments":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/cuappdev/big-red-shuttle/statuses/e1ec6639f0db57d1f4789faf21b5100c79d5ab91"}}}}
{"actor":{"display_login":"AAAstorga"}}