{"action":"created","comment":{"url":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/comments/32920920","id":32920920,"diff_hunk":"@@ -11,17 +12,18 @@ export default class Location extends React.Component {\n   }\n \n   handleClick() {\n-    navigator.geolocation.getCurrentPosition(\n+    this.setState({ location: 'Fetching location...', error: '' });\n+\n+    Geolocation.getCurrentPosition(\n       geo => {\n         const lat = geo.coords.latitude;\n         const lon = geo.coords.longitude;\n \n-        this.setState({ lat, lon, location: `${lat}, ${lon}`, error: '' });\n+        this.setState({ lat, lon, location: `${lat.toFixed(4)}, ${lon.toFixed(4)}`, error: '' });","path":"lib/client/components/Location.jsx","position":20,"original_position":20,"commit_id":"23625487c9cdbb7007e8f36441ca76eacaa0c72f","original_commit_id":"23625487c9cdbb7007e8f36441ca76eacaa0c72f","user":{"login":"chadxz","id":309219,"avatar_url":"https://avatars.githubusercontent.com/u/309219?v=3","gravatar_id":"","url":"https://api.github.com/users/chadxz","html_url":"https://github.com/chadxz","followers_url":"https://api.github.com/users/chadxz/followers","following_url":"https://api.github.com/users/chadxz/following{/other_user}","gists_url":"https://api.github.com/users/chadxz/gists{/gist_id}","starred_url":"https://api.github.com/users/chadxz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadxz/subscriptions","organizations_url":"https://api.github.com/users/chadxz/orgs","repos_url":"https://api.github.com/users/chadxz/repos","events_url":"https://api.github.com/users/chadxz/events{/privacy}","received_events_url":"https://api.github.com/users/chadxz/received_events","type":"User","site_admin":false},"body":"Is there some benefit to rounding off the coordinates this way? Doesn't it lose precision?","created_at":"2015-06-22T10:26:24Z","updated_at":"2015-06-22T10:26:24Z","html_url":"https://github.com/codeforhuntsville/Frontier/pull/55#discussion_r32920920","pull_request_url":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/comments/32920920"},"html":{"href":"https://github.com/codeforhuntsville/Frontier/pull/55#discussion_r32920920"},"pull_request":{"href":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/55","id":38197593,"html_url":"https://github.com/codeforhuntsville/Frontier/pull/55","diff_url":"https://github.com/codeforhuntsville/Frontier/pull/55.diff","patch_url":"https://github.com/codeforhuntsville/Frontier/pull/55.patch","issue_url":"https://api.github.com/repos/codeforhuntsville/Frontier/issues/55","number":55,"state":"open","locked":false,"title":"Added tests for the Location component","user":{"login":"tessellator","id":992287,"avatar_url":"https://avatars.githubusercontent.com/u/992287?v=3","gravatar_id":"","url":"https://api.github.com/users/tessellator","html_url":"https://github.com/tessellator","followers_url":"https://api.github.com/users/tessellator/followers","following_url":"https://api.github.com/users/tessellator/following{/other_user}","gists_url":"https://api.github.com/users/tessellator/gists{/gist_id}","starred_url":"https://api.github.com/users/tessellator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tessellator/subscriptions","organizations_url":"https://api.github.com/users/tessellator/orgs","repos_url":"https://api.github.com/users/tessellator/repos","events_url":"https://api.github.com/users/tessellator/events{/privacy}","received_events_url":"https://api.github.com/users/tessellator/received_events","type":"User","site_admin":false},"body":"We do not currently have any tests in the client portion of the code, so I'm just throwing this out to start a discussion on it.  These tests are built using Facebook's Jest test library.\r\n\r\nThe tests take a few seconds to run because the JSX has to be transformed before execution.  We can improve performance of the tests later by caching the transformation results.","created_at":"2015-06-22T03:17:28Z","updated_at":"2015-06-22T10:26:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"912a9b9eba7df80c8b70fed5e9b764c739c855f8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/55/commits","review_comments_url":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/55/comments","review_comment_url":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeforhuntsville/Frontier/issues/55/comments","statuses_url":"https://api.github.com/repos/codeforhuntsville/Frontier/statuses/23625487c9cdbb7007e8f36441ca76eacaa0c72f","head":{"label":"tessellator:add-tests","ref":"add-tests","sha":"23625487c9cdbb7007e8f36441ca76eacaa0c72f","user":{"login":"tessellator","id":992287,"avatar_url":"https://avatars.githubusercontent.com/u/992287?v=3","gravatar_id":"","url":"https://api.github.com/users/tessellator","html_url":"https://github.com/tessellator","followers_url":"https://api.github.com/users/tessellator/followers","following_url":"https://api.github.com/users/tessellator/following{/other_user}","gists_url":"https://api.github.com/users/tessellator/gists{/gist_id}","starred_url":"https://api.github.com/users/tessellator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tessellator/subscriptions","organizations_url":"https://api.github.com/users/tessellator/orgs","repos_url":"https://api.github.com/users/tessellator/repos","events_url":"https://api.github.com/users/tessellator/events{/privacy}","received_events_url":"https://api.github.com/users/tessellator/received_events","type":"User","site_admin":false},"repo":{"id":37394984,"name":"Frontier","full_name":"tessellator/Frontier","owner":{"login":"tessellator","id":992287,"avatar_url":"https://avatars.githubusercontent.com/u/992287?v=3","gravatar_id":"","url":"https://api.github.com/users/tessellator","html_url":"https://github.com/tessellator","followers_url":"https://api.github.com/users/tessellator/followers","following_url":"https://api.github.com/users/tessellator/following{/other_user}","gists_url":"https://api.github.com/users/tessellator/gists{/gist_id}","starred_url":"https://api.github.com/users/tessellator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tessellator/subscriptions","organizations_url":"https://api.github.com/users/tessellator/orgs","repos_url":"https://api.github.com/users/tessellator/repos","events_url":"https://api.github.com/users/tessellator/events{/privacy}","received_events_url":"https://api.github.com/users/tessellator/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tessellator/Frontier","description":"A civic app for finding whats near me","fork":true,"url":"https://api.github.com/repos/tessellator/Frontier","forks_url":"https://api.github.com/repos/tessellator/Frontier/forks","keys_url":"https://api.github.com/repos/tessellator/Frontier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tessellator/Frontier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tessellator/Frontier/teams","hooks_url":"https://api.github.com/repos/tessellator/Frontier/hooks","issue_events_url":"https://api.github.com/repos/tessellator/Frontier/issues/events{/number}","events_url":"https://api.github.com/repos/tessellator/Frontier/events","assignees_url":"https://api.github.com/repos/tessellator/Frontier/assignees{/user}","branches_url":"https://api.github.com/repos/tessellator/Frontier/branches{/branch}","tags_url":"https://api.github.com/repos/tessellator/Frontier/tags","blobs_url":"https://api.github.com/repos/tessellator/Frontier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tessellator/Frontier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tessellator/Frontier/git/refs{/sha}","trees_url":"https://api.github.com/repos/tessellator/Frontier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tessellator/Frontier/statuses/{sha}","languages_url":"https://api.github.com/repos/tessellator/Frontier/languages","stargazers_url":"https://api.github.com/repos/tessellator/Frontier/stargazers","contributors_url":"https://api.github.com/repos/tessellator/Frontier/contributors","subscribers_url":"https://api.github.com/repos/tessellator/Frontier/subscribers","subscription_url":"https://api.github.com/repos/tessellator/Frontier/subscription","commits_url":"https://api.github.com/repos/tessellator/Frontier/commits{/sha}","git_commits_url":"https://api.github.com/repos/tessellator/Frontier/git/commits{/sha}","comments_url":"https://api.github.com/repos/tessellator/Frontier/comments{/number}","issue_comment_url":"https://api.github.com/repos/tessellator/Frontier/issues/comments{/number}","contents_url":"https://api.github.com/repos/tessellator/Frontier/contents/{+path}","compare_url":"https://api.github.com/repos/tessellator/Frontier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tessellator/Frontier/merges","archive_url":"https://api.github.com/repos/tessellator/Frontier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tessellator/Frontier/downloads","issues_url":"https://api.github.com/repos/tessellator/Frontier/issues{/number}","pulls_url":"https://api.github.com/repos/tessellator/Frontier/pulls{/number}","milestones_url":"https://api.github.com/repos/tessellator/Frontier/milestones{/number}","notifications_url":"https://api.github.com/repos/tessellator/Frontier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tessellator/Frontier/labels{/name}","releases_url":"https://api.github.com/repos/tessellator/Frontier/releases{/id}","created_at":"2015-06-14T01:46:28Z","updated_at":"2015-06-14T01:46:28Z","pushed_at":"2015-06-22T02:51:24Z","git_url":"git://github.com/tessellator/Frontier.git","ssh_url":"git@github.com:tessellator/Frontier.git","clone_url":"https://github.com/tessellator/Frontier.git","svn_url":"https://github.com/tessellator/Frontier","homepage":"http://codeforhuntsville.com/","size":135,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codeforhuntsville:master","ref":"master","sha":"6174e4f474fef35c9ecfc3c69951cd24f0fdb937","user":{"login":"codeforhuntsville","id":11465332,"avatar_url":"https://avatars.githubusercontent.com/u/11465332?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforhuntsville","html_url":"https://github.com/codeforhuntsville","followers_url":"https://api.github.com/users/codeforhuntsville/followers","following_url":"https://api.github.com/users/codeforhuntsville/following{/other_user}","gists_url":"https://api.github.com/users/codeforhuntsville/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforhuntsville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforhuntsville/subscriptions","organizations_url":"https://api.github.com/users/codeforhuntsville/orgs","repos_url":"https://api.github.com/users/codeforhuntsville/repos","events_url":"https://api.github.com/users/codeforhuntsville/events{/privacy}","received_events_url":"https://api.github.com/users/codeforhuntsville/received_events","type":"Organization","site_admin":false},"repo":{"id":35188660,"name":"Frontier","full_name":"codeforhuntsville/Frontier","owner":{"login":"codeforhuntsville","id":11465332,"avatar_url":"https://avatars.githubusercontent.com/u/11465332?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforhuntsville","html_url":"https://github.com/codeforhuntsville","followers_url":"https://api.github.com/users/codeforhuntsville/followers","following_url":"https://api.github.com/users/codeforhuntsville/following{/other_user}","gists_url":"https://api.github.com/users/codeforhuntsville/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforhuntsville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforhuntsville/subscriptions","organizations_url":"https://api.github.com/users/codeforhuntsville/orgs","repos_url":"https://api.github.com/users/codeforhuntsville/repos","events_url":"https://api.github.com/users/codeforhuntsville/events{/privacy}","received_events_url":"https://api.github.com/users/codeforhuntsville/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforhuntsville/Frontier","description":"A civic app for finding whats near me","fork":false,"url":"https://api.github.com/repos/codeforhuntsville/Frontier","forks_url":"https://api.github.com/repos/codeforhuntsville/Frontier/forks","keys_url":"https://api.github.com/repos/codeforhuntsville/Frontier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforhuntsville/Frontier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforhuntsville/Frontier/teams","hooks_url":"https://api.github.com/repos/codeforhuntsville/Frontier/hooks","issue_events_url":"https://api.github.com/repos/codeforhuntsville/Frontier/issues/events{/number}","events_url":"https://api.github.com/repos/codeforhuntsville/Frontier/events","assignees_url":"https://api.github.com/repos/codeforhuntsville/Frontier/assignees{/user}","branches_url":"https://api.github.com/repos/codeforhuntsville/Frontier/branches{/branch}","tags_url":"https://api.github.com/repos/codeforhuntsville/Frontier/tags","blobs_url":"https://api.github.com/repos/codeforhuntsville/Frontier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforhuntsville/Frontier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforhuntsville/Frontier/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforhuntsville/Frontier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforhuntsville/Frontier/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforhuntsville/Frontier/languages","stargazers_url":"https://api.github.com/repos/codeforhuntsville/Frontier/stargazers","contributors_url":"https://api.github.com/repos/codeforhuntsville/Frontier/contributors","subscribers_url":"https://api.github.com/repos/codeforhuntsville/Frontier/subscribers","subscription_url":"https://api.github.com/repos/codeforhuntsville/Frontier/subscription","commits_url":"https://api.github.com/repos/codeforhuntsville/Frontier/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforhuntsville/Frontier/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforhuntsville/Frontier/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforhuntsville/Frontier/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforhuntsville/Frontier/contents/{+path}","compare_url":"https://api.github.com/repos/codeforhuntsville/Frontier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforhuntsville/Frontier/merges","archive_url":"https://api.github.com/repos/codeforhuntsville/Frontier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforhuntsville/Frontier/downloads","issues_url":"https://api.github.com/repos/codeforhuntsville/Frontier/issues{/number}","pulls_url":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforhuntsville/Frontier/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforhuntsville/Frontier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforhuntsville/Frontier/labels{/name}","releases_url":"https://api.github.com/repos/codeforhuntsville/Frontier/releases{/id}","created_at":"2015-05-06T23:44:38Z","updated_at":"2015-06-18T14:20:48Z","pushed_at":"2015-06-22T03:17:28Z","git_url":"git://github.com/codeforhuntsville/Frontier.git","ssh_url":"git@github.com:codeforhuntsville/Frontier.git","clone_url":"https://github.com/codeforhuntsville/Frontier.git","svn_url":"https://github.com/codeforhuntsville/Frontier","homepage":"http://codeforhuntsville.com/","size":31850,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":21,"forks":11,"open_issues":21,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/55"},"html":{"href":"https://github.com/codeforhuntsville/Frontier/pull/55"},"issue":{"href":"https://api.github.com/repos/codeforhuntsville/Frontier/issues/55"},"comments":{"href":"https://api.github.com/repos/codeforhuntsville/Frontier/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeforhuntsville/Frontier/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/codeforhuntsville/Frontier/statuses/23625487c9cdbb7007e8f36441ca76eacaa0c72f"}}}}